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
systemd
(Copying answer from question)
To add an insecure docker registry, add the file /etc/docker/daemon.json with the following content:
/etc/docker/daemon.json
{ "insecure-registries" : [ "hostname.cloudapp.net:5000" ] }
and then restart docker.