Created
March 13, 2015 18:07
-
-
Save yupadhyay/dd18daa4652ee908d330 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This is to avoid following error | |
# FATA[0000] Error: Invalid registry endpoint certificate signed by unknown authority. If this private registry supports only HTTP or HTTPS # with an unknown CA certificate, please add `--insecure-registry HOST` to the daemon's arguments. In the case of HTTPS, if you have access # to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/HOST/ca.crt | |
# For red hat Linux | |
vi /etc/sysconfig/docker | |
# Add following line | |
other_args="--insecure-registry <Your-Registry-HOST>" | |
service docker restart | |
# For Mac book | |
boot2docker init | |
boot2docker up | |
boot2docker ssh "echo $'EXTRA_ARGS=\"--insecure-registry <Your registry host>\"' | sudo tee -a /var/lib/boot2docker/profile && sudo /etc/init.d/docker restart" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment