Friday, August 31, 2018

Install docker on the openshift master and the node


step1:

How to install specific version of the Docker ?
yum  -y  install  docker-1.13.1


Step2:

Add  --insecure-registry 172.xx.x.x/16  to  /etc/sysconfig/docker

$ vim /etc/sysconfig/docker

OPTIONS=  '--selinux-enabled  --insecure-registry  172.xx.x.x/16 --log-driver=journald --signature-verfication=false'

Step3:

if enabled, disable the LVM cluster feature.

$lvmconf   --disable-cluster

Step4:

Edit docker-storage-setup to use storage mounted on /dev/[x]vdb,then the complete installation using the proper  command-line tools 

$ vim /etc/sysconfig/docker-storage-setup 

The file should contain only the following:

DEVS=/xvdb
VG=docker-vg


Step5:

How to verify the storage is configured properly ?
$ lvs  /dev/docker-vg/docker-pool


Step6:

Start and enable Docker on all Openshift nodes.

$ systemctl enable docker  && systemctl start docker













No comments:

Post a Comment