I recently studied Docker and tested it in Ubuntu 15.04 by using the APT library provided by Docker and then installing it using Apt-get, which is referenced here.
I want to test my own private library, because the private library does not have a certificate configured, so you need to modify the configuration in the Docker startup item and cancel out the certificate authentication docker_opts= "--insecure-registry 10.0.40.16:5000". However, when the DOCKER process was started, it was found that the contents of docker_opts were not loaded.
Then I modified the/etc/default/docker and added a
docker_opts= "--insecure-registry 10.0.40.16:5000"
Start the DOCKER process again,the docker_opts option is still not in effect, what is the situation?
Next, I modify another config file again,/etc/init.d/docker, again, join
docker_opts= "--insecure-registry 10.0.40.16:5000"
To start again, or not to take effect ...
Modify another configuration file:/etc/init/docker.conf, Join:
docker_opts= "--insecure-registry 10.0.40.16:5000"
Restart the Docker process again, it is still not effective, no language.
Finally, on Google, find information, find a connection, or Docker's official file: https://docs.docker.com/articles/systemd/
The discovery can also be modified:/lib/systemd/system/docker.service, added Inside:
Environmentfile=-/etc/default/docker
Then, modify: Execstart=/usr/bin/docker-d-H fd://, change to: execstart=/usr/bin/docker-d-H fd://$DOCKER _opts
Start again, finally effective, I can only say that the configuration file is really many, mainly are misleading people, the real pit!
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Ubuntu 15.04 under Docker 1.7.1 docker_opts configuration does not take effect in the resolution