当前位置: 首页 > news >正文

docker拉取镜像支持http

docker拉取镜像支持http

docker默认使用https拉取镜像,无法通过http拉取镜像。
创建或修改/etc/docker/daemon.json文件,增加insecure-registries字段。

{"insecure-registries" : ["镜像地址域名或者ip:port"]
}

重启docker

systemctl restart docker