# docker pull centos Error response from daemon: Get “https://## read: connection reset by peer.
·

解决步骤
1.创建 daemon.json 文件(如果需要配置代理):
如果你的网络环境需要通过代理访问互联网,你可以创建一个 daemon.json 文件来配置代理。请按照以下步骤进行:
[root@mu ~]# vim /etc/docker/daemon.json
在文件中添加如下内容(替换为你的代理地址):
{
"registry-mirrors": ["https://docker.m.daocloud.io"]
}
2.重启 Docker:
[root@mu ~]# systemctl restart docker
如出现下面错误---是daemon.json文件里出现格式或者其他错误。(将添加内容手动打出来)

Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
3.重新尝试拉取镜像:
[root@mu ~]# docker pull centos:centos7.9.2009
更多推荐



所有评论(0)