content_image/829110.jpg
# yum install docker 

# yum update 

Once we have all the above base packages installed in both of the machines, the next step would be to set up Docker on the respective machines. 

Step 2: Configure Docker so that it should allow insecure communication on the local network only. For this, edit the Docker file inside /etc/sysconfig. If the file is not present then you need to create it manually. 

# vi /etc/sysconfig/docker OPTIONS=--selinux-enabled --insecure-registry 192.168.122.0/24 

After configuring the Docker on the master machine, we need to set up a password-less communication between both the machines. For this, we will use public and private key authentication. 

Step 3: Generate keys on the master machine and then copy the id_rsa.pub key to the authorized key file of the node machine, which can be done using the following command. 

# ssh-keygen 

# ssh-copy-id -i .ssh/id_rsa.pub root@ose3-node.test.com 

Once you have all of the above setup in place, next is to set up OpenShift version 3 on the master machine. 

Step 4: From the master machine, run the following curl command. 

# sh <(curl -s https://install.openshift.com/ose) 

<img src='content_image/829110.jpg'>

