Add Insecure Registry to Docker

后端 未结 6 928
醉话见心
醉话见心 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:12

    Creating /etc/docker/daemon.json file and adding the below content and then doing a docker restart on CentOS 7 resolved the issue.

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

提交回复
热议问题