最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(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源配置的評論 (共 條)

分享到微博請遵守國家法律
呼伦贝尔市| 绍兴市| 海安县| 行唐县| 临澧县| 化德县| 吴江市| 察雅县| 邵阳市| 佛冈县| 彰武县| 和田县| 崇仁县| 大冶市| 财经| 彩票| 淳化县| 阿荣旗| 额敏县| 永新县| 高要市| 庄浪县| 合川市| 营口市| 时尚| 叶城县| 香港 | 苏州市| 京山县| 博野县| 潜山县| 奈曼旗| 古浪县| 苍溪县| 安龙县| 岳阳市| 都兰县| 黄冈市| 东平县| 齐河县| 定陶县|