1. 程式人生 > >國內軟體映象源以及使用方法【持續更新】

國內軟體映象源以及使用方法【持續更新】

docker

映象

配置檔案

加入以下內容

{
    "registry-mirrors": ["https://registry.docker-cn.com"]
}

檔案位置

Linux

vi /etc/docker/daemon.json

pip

映象

臨時使用

可以在使用pip的時候加引數 -i https://pypi.tuna.tsinghua.edu.cn/simple

例如

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple gevent

配置檔案

加入以下內容

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

檔案位置

Linux

修改/建立 pip.conf檔案

 ~/.pip/pip.conf

Windows

修改/建立 pip.conf檔案

C:\Users\xx\pip\pip.conf