Deploy a plain HTTP registry

當docker pull a.b.com/ubuntu:14.04的時候,若是提示:「Docker x509 insecure registry」之類的,說這個registry不安全的,若是就是想在a.b.com上面pull,能夠這樣:linux


mac版直接這樣:docker


linux版的docker,須要這樣:json

1. Edit the daemon.json file, whose default location is /etc/docker/daemon.json on Linux , If the daemon.json file does not exist, create it. Assuming there are no other settings in the file, it should have the following contents:ubuntu

{ "insecure-registries" : ["myregistrydomain.com:5000"] }

2. Restart Docker for the changes to take effect:
   sudo service docker restart安全

相關文章
相關標籤/搜索