Add Insecure Registry to Docker

后端 未结 6 934
醉话见心
醉话见心 2020-12-12 11:24

I have a docker 1.12 running on CentOS. I am trying to add insecure registry to it and things mentioned in documentation just don\'t work. The system uses systemd

6条回答
  •  醉酒成梦
    2020-12-12 12:26

    (Copying answer from question)

    To add an insecure docker registry, add the file /etc/docker/daemon.json with the following content:

    {
        "insecure-registries" : [ "hostname.cloudapp.net:5000" ]
    }
    

    and then restart docker.

提交回复
热议问题