已经试了好多种方法了, Docker daemon.json 配置不生效怎么解决??

2019-10-15 12:07:59 +08:00
 KV2

在一台虚拟机上配置并启动 Docker registry

在另一台虚拟机上 /etc/docker/daemno.json 配置了 insecure-registries,然后重启 docker 服务

但在 push 镜像到私 Docker registry 时总是出现 http: server gave HTTP response to HTTPS client

13072 次点击
所在节点    Linux
5 条回复
silverfox
2019-10-15 12:13:44 +08:00
可以用 docker info 命令查看配置是否生效
KV2
2019-10-15 12:16:59 +08:00
@silverfox 没有生效呢,Insecure Registries 只显示了 127.0.0.0/8 这地址。Ubuntu 的主机,也不知是哪里的问题。
silverfox
2019-10-15 12:32:47 +08:00
路径拼写有误,应该是 /etc/docker/daemon.json
yeya24
2019-10-15 12:32:48 +08:00
看看 docker daemon 的日志
Latin
2019-10-22 15:14:58 +08:00
command

docker login xxx.xxx.com:port


config


{
"insecure-registries": [
" xxx.xxx.com:port"
],
"registry-mirrors": [
"https://docker.mirrors.ustc.edu.cn"
]
}

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/609472

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX