拉取docker私有仓库镜像报错http: server gave HTTP response to HTTPs client解决办法

docker私有仓库镜像拉取指令

sudo docker pull 10.246.152.91:5000/xxx_image

报错

Error response from daemon Get "https://10.246.152.91:5000/v2/": http: server gave HTTP response to HTTPs client

解决办法

  1. 创建文件/etc/docker/daemon.json, 文件内容如下:
    {
    “insecure-registries”: [
    “10.246.152.91:5000”
    ]
    }

  2. 重启Docker服务:sudo service docker restart

你可能感兴趣的:(docker,容器)