docker下载私有仓库镜像失败:Error response from daemon: Get $ip:5000/v2/: http: server gave HTTP response to HT
Ubuntu安装了dockerce,版本号为:# docker -vDocker version 18.09.3, build 774a1f4执行docker pull过程中报错:# docker pull xxx.xxx.xxx:5000/ubuntu/18.04/myimages:latestError response from daemon: Get https://...
·
Ubuntu安装了docker ce,版本号为:
# docker -v
Docker version 18.09.3, build 774a1f4
执行docker pull过程中报错:
# docker pull xxx.xxx.xxx:5000/ubuntu/18.04/myimages:latest
Error response from daemon: Get https://xxx.xxx.xxx:5000/v2/: http: server gave HTTP response to HTTPS client
解决方法:在/etc/docker/daemon.json文件中新增一行"insecure-registries":["xxx.xxx.xxx:5000"],没有则新建此文件,重启docker服务
# cat daemon.json
{
"insecure-registries":["xxx.xxx.xxx:5000"],
"storage-driver": "overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
]
}
# service docker restart
更多推荐
已为社区贡献9条内容
所有评论(0)