Error: did not detect an --insecure-registry argument on the Docker daemon
-
This is for a development/test environment. This error means the option "--insecure-registry" needs to be added to docker daemon on startup.
The solution is actually provided in the output, if you are familiar with linux you will know where linux calls default options from, but otherwise it does not tell you how to add the option.
$ ./oc cluster up --version=v1.3.1 -- Checking OpenShift client ... OK -- Checking Docker client ... OK -- Checking Docker version ... OK -- Checking for existing OpenShift container ... OK -- Checking for openshift/origin:v1.3.1 image ... Pulling image openshift/origin:v1.3.1 Pulled 0/3 layers, 3% complete Pulled 1/3 layers, 44% complete Pulled 2/3 layers, 97% complete Pulled 3/3 layers, 100% complete Extracting Image pull complete -- Checking Docker daemon configuration ... FAIL Error: did not detect an --insecure-registry argument on the Docker daemon Solution: Ensure that the Docker daemon is running with the following argument: --insecure-registry 172.30.0.0/16
The docker daemon use the /etc/default/docker file for default options. In there there's a variable called DOCKER_OPTS, it needs to be set here.
© Lightnetics 2024