您的位置 首页 技术

如何解决docker拉取私有仓库镜像报错

当从私有镜像库拉取镜像时出现如下问题: docker pull myregistry:xxError response from daemon: Get https://xxx:5…

当从私有镜像库拉取镜像时出现如下问题:

docker pull myregistry:xxError response from daemon: Get https://xxx:5000/v1/_ping: http: server gave HTTP response to HTTPS client

解决方法:修改该或者新建/etc/docker/daemon.json添加下面这条语句:

{ "insecure-registries":["myregistry.example.com:5000"] }

然后重启docker服务:

sudo service docker restart

解决。

相关推荐:docker教程

以上就是如何解决docker拉取私有仓库镜像报错的详细内容,更多请关注24课堂在线网其它相关文章!

本文来自网络,不代表24小时课堂在线立场,转载请注明出处:https://www.24ketang.cn/71696.html

为您推荐

返回顶部