Deploy a plain HTTP registry

当docker pull a.b.com/ubuntu:14.04的时候,如果提示:“Docker x509 insecure registry”之类的,说这个registry不安全的,如果就是想在a.b.com上面pull,可以这样:


mac版直接这样:


linux版的docker,需要这样:

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:

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

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

posted @ 2019-05-17 16:20  小鼬就是我  阅读(169)  评论(0编辑  收藏  举报