无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊

linux - docker、pip源配置

2021-05-17 23:01 作者:阿提艾斯  | 我要投稿

【docker源配置】

vi /etc/docker/daemon.json

輸入源地址:

{

"registry-mirrors": ["http://hub-mirror.c.163.com","https://docker.mirrors.ustc.edu.cn","https://pee6w651.mirror.aliyuncs.com"]

}?

保存退出

systemctl daemon-reload? ?重新加載配置文件

systemctl restart docker.service? 重啟docker服務(wù)

systemctl status docker.service? ?查看docker運(yùn)行狀態(tài)

國內(nèi)常見的docker鏡像源

科大鏡像:https://docker.mirrors.ustc.edu.cn

DaoCloud鏡像:http://f1361db2.m.daocloud.io

網(wǎng)易云:https://hub-mirror.c.163.com

七牛云:https://reg-mirror.qiniu.com

阿里云:https://pee6w651.mirror.aliyuncs.com


docker鏡像源配置樣例



【pip源配置】

方法一:

可以自己下載的時(shí)候配置pip源,這種方法比較麻煩,每次下載都要配置

pip install -i jinja2 http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

方法二:

配置文件配置:

vi? /etc/pip.conf? ? # 有的是在~/.pip/pip.conf

[global]

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

extra-index-url=http://pypi.douban.com/simple/

trusted-host=pypi.tuna.tsinghua.edu.cn? pypi.douban.com

參數(shù)含義:

index-url:首先從這個(gè)源尋找資源

extra-index-url:如果從index-url找不到資源,就從extra-index-url中尋找資源

trusted-host:添加域名為可信主機(jī),防止報(bào)錯(cuò)

目前國內(nèi)常見的幾個(gè)pip源:

默認(rèn)官方提供的源:https://www.piwheels.org/simple

清華:https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:http://mirrors.aliyun.com/pypi/simple/

中國科技大學(xué) https://pypi.mirrors.ustc.edu.cn/simple/

華中理工大學(xué):http://pypi.hustunique.com/

山東理工大學(xué):http://pypi.sdutlinux.org/

豆瓣:http://pypi.douban.com/simple/


pip源配置樣例



?




linux - docker、pip源配置的評論 (共 條)

分享到微博請遵守國家法律
汾西县| 鹿邑县| 巨野县| 青铜峡市| 扶风县| 汉中市| 尼木县| 巴南区| 郧西县| 同江市| 平乡县| 南岸区| 财经| 信宜市| 闸北区| 五家渠市| 宁陕县| 中牟县| 新河县| 辽宁省| 本溪| 吉安市| 工布江达县| 尚义县| 田东县| 右玉县| 沁阳市| 华亭县| 闸北区| 北海市| 同仁县| 临猗县| 民县| 富民县| 津南区| 射阳县| 梓潼县| 张家川| 四平市| 望城县| 昭觉县|