Redhat Openshift Install Problem -insecure-registry

0
1719

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
   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 answer is really easy.

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

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

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

$ sudo systemctl daemon-reload
$ sudo systemctl restart docker

run again

./oc cluster up

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here

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