docker pull 报错Get https://xxx.xxx.xxx.xxx:5000/v1/_ping: http: server gave HTTP response

docker pull报错,解决方法:

[[email protected] mynginx]

# docker push 192.168.1.112:5000/test
The push refers to a repository [192.168.1.112:5000/test]
Get https://192.168.1.112:5000/v1/_ping: http: server gave HTTP response to HTTPS client

    运行命令:

echo '{ "insecure-registries":["xxx.xxx.xxx.xxx:5000"] }' > /etc/docker/daemon.json
systemctl restart docker

lets run again,its ok

[[email protected] mynginx]

# docker push 192.168.1.112:5000/test
The push refers to a repository [192.168.1.112:5000/test]
e7d38b597dc1: Pushed
332fa54c5886: Pushed
6ba094226eea: Pushed
6270adb5794c: Pushed
latest: digest: sha256:147dd56bbd7f2db7862728b1a682259791aa11bd84969bf4c82542abef46059c size: 1155
此条目发表在Docker分类目录,贴了标签。将固定链接加入收藏夹。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注