Ubuntu 15.04 under Docker 1.7.1 docker_opts configuration does not take effect in the resolution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.