2016-12-02 58 views
1

我想在ubuntu 16.04(docker v1.12.3)上以不安全模式运行码头注册表。我做了the documentation中指定的更改。运行码头注册表在Ubuntu上的不安全模式运行时遇到问题16.04

的/ etc /默认/泊坞窗:

DOCKER_OPTS="--insecure-registry 10.10.10.10:5000" 

,然后重新启动泊坞窗服务。但是我没有运气。当我尝试连接,我得到

Error response from daemon: Get https://10.10.10.10:5000/v1/_ping: 
http: server gave HTTP response to HTTPS client 

回答

1

检查(与泊坞窗1.12使用时)本docker/distribution issue可以帮助:

  • 创建或修改/etc/docker/daemon.json
{ "insecure-registries":["myregistry.example.com:5000"] } 
  • 重启码头工人守护
sudo service docker restart 

在Unbuntu 16.04,还要检查是否configuring docker through systemd更好。

相关问题