赞
踩
如果每次拉取的时候遇到超时
error pulling image configuration: download failed after attempts=6: dial tcp 31.13.94.10:443: i/o timeout
设置国内镜像源:
sudo mkdir -p /etc/docker
然后
- sudo gedit /etc/docker/daemon.json
- 或者
- sudo nano /etc/docker/daemon.json
- 或者
- sudo vim /etc/docker/daemon.json
在文件里面写入:
- {
- "register-mirrors": [
-
- "https://ox288s4f.mirror.aliyuncs.com",
- "https://registry.docker-cn.com",
- "http://hub-mirror.c.163.com",
- "https://mirror.ccs.tencentyun.com"
-
- ]
- }
写入之后执行命令
- sudo systemctl daemon-reload
- sudo systemctl restart docker
-
- 或者
-
- sudo service docker restart
再拉取就快了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。