运行 docker 注册表在 Ubuntu 16.04 上的不安全模式下出现问题
Trouble running docker registry in insecure mode on Ubuntu 16.04
我正尝试在 ubuntu 16.04 (docker v1.12.3) 上以不安全模式 运行 docker 注册表。我进行了 the documentation.
中指定的更改
/etc/default/docker:
DOCKER_OPTS="--insecure-registry 10.10.10.10:5000"
然后重新启动了 docker 服务。但是我没有运气。当我尝试连接时,我得到
Error response from daemon: Get https://10.10.10.10:5000/v1/_ping:
http: server gave HTTP response to HTTPS client
检查此 docker/distribution issue 是否有帮助(与 docker 1.12 一起使用时):
- Create or modify
/etc/docker/daemon.json
{ "insecure-registries":["myregistry.example.com:5000"] }
- Restart docker daemon
sudo service docker restart
在 Unbuntu 16.04 上,还要检查 configuring docker through systemd 是否更好。
我正尝试在 ubuntu 16.04 (docker v1.12.3) 上以不安全模式 运行 docker 注册表。我进行了 the documentation.
中指定的更改/etc/default/docker:
DOCKER_OPTS="--insecure-registry 10.10.10.10:5000"
然后重新启动了 docker 服务。但是我没有运气。当我尝试连接时,我得到
Error response from daemon: Get https://10.10.10.10:5000/v1/_ping:
http: server gave HTTP response to HTTPS client
检查此 docker/distribution issue 是否有帮助(与 docker 1.12 一起使用时):
- Create or modify
/etc/docker/daemon.json
{ "insecure-registries":["myregistry.example.com:5000"] }
- Restart docker daemon
sudo service docker restart
在 Unbuntu 16.04 上,还要检查 configuring docker through systemd 是否更好。