<p>I just installed a new centos server with docker</p>

<pre><code>Client:
 Version:         1.13.1
 API version:     1.26
 Package version: &lt;unknown&gt;
 Go version:      go1.8.3
 Git commit:      774336d/1.13.1
 Built:           Wed Mar  7 17:06:16 2018
 OS/Arch:         linux/amd64


Server:  Version:         1.13.1  API version:     1.26 (minimum
&gt; version 1.12)  Package version: &lt;unknown&gt;  Go version:      go1.8.3 
&gt; Git commit:      774336d/1.13.1  Built:           Wed Mar  7 17:06:16
&gt; 2018  OS/Arch:         linux/amd64  Experimental:    false
</code></pre>

<p>And i can use the command oc cluster up to launch a openshift server</p>

<pre><code>oc cluster up --host-data-dir /data --public-hostname master.ouatrahim.com --routing-suffix master.ouatrahim.com
</code></pre>

<p>which gives the output</p>

<pre><code>Using nsenter mounter for OpenShift volumes
Using 127.0.0.1 as the server IP
Starting OpenShift using openshift/origin:v3.9.0 ...
OpenShift server started.

The server is accessible via web console at:
    https://master.ouatrahim.com:8443

You are logged in as:
    User:     developer
    Password: &lt;any value&gt;

To login as administrator:
    oc login -u system:admin
</code></pre>

<p>And oc version gives the output </p>

<pre><code>oc v3.9.0+ba7faec-1
kubernetes v1.9.1+a0ce1bc657
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://127.0.0.1:8443
openshift v3.9.0+0e3d24c-14
kubernetes v1.9.1+a0ce1bc657
</code></pre>

<p>But when i tried to access to the web console via <a href="https://master.ouatrahim.com:8443/" rel="nofollow noreferrer">https://master.ouatrahim.com:8443/</a> i keep getting a http redirect to 127.0.0.1</p>

<pre><code>https://127.0.0.1:8443/oauth/authorize?client_id=openshift-web-console&amp;response_type=code&amp;state=eyJ0aGVuIjoiLyIsIm5vbmNlIjoiMTUyNTk2NjcwODI1MS0xODg4MTcxMDEyMjU3OTQ1MjM0NjIwNzM5NTQ5ODE0ODk5OTYxMTIxMTI2NDI3ODg3Mjc5MjAwMTgwODI4NTg0MTkyODAxOTA2NTY5NjU2In0&amp;redirect_uri=https%3A%2F%2F127.0.0.1%3A8443%2Fconsole%2Foauth
</code></pre>

<p>I hope someone can help me solve this</p>

<p>You can bring up the cluster using your IP address like:
oc cluster up --public-hostname=192.168.122.154 </p>

<p>This way you should be able to access using <a href="https://master.ouatrahim.com:8443/" rel="nofollow noreferrer">https://master.ouatrahim.com:8443/</a></p>
