Redhat Openshift Install Problem -insecure-registry


While trying to install redhat openshift,you will get an error.

$ oc cluster up
-- 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, 71% complete
   Pulled 2/3 layers, 86% complete
   Pulled 3/3 layers, 100% complete
   Image pull complete
-- Checking Docker daemon configuration ... FAIL
   Error: did not detect an --insecure-registry argument on the Docker daemon

     Ensure that the Docker daemon is running with the following argument:

The answer is really easy.

You should edit /etc/containers/registries.conf file.

vi /etc/containers/registries.conf
and add to the list of registries under [registries.insecure] category.
registries = ['']

After editing the config, reload systemd and restart the Docker daemon.

$ sudo systemctl daemon-reload
$ sudo systemctl restart docker

run again

./oc cluster up



Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.