My linux world » Docker using with OpenShift

Docker using with OpenShift


Contents

Install CentOS

Please install a fresh CentOS version : CENTOS INSTALLATION

Install Docker

yum -y install docker
 
# Ensure that the Docker daemon is running with --insecure-registry argument on the Docker daemon
sed -i '/OPTIONS=.*/c\OPTIONS="--selinux-enabled --insecure-registry 172.30.0.0/16"' /etc/sysconfig/docker
 
systemctl enable docker
systemctl start docker

Install OpenShift

yum -y install centos-release-openshift-origin
yum -y install origin

Start OpenShift cluster

oc cluster up --public-hostname=MYIPADDR

and login as administrator

oc login -u system:admin

Example expose Jenkins

oc new-project ci
oc new-app library/jenkins:2.0
oc expose svc jenkins

Copyright © 2024 My linux world - by Marc RABAHI
Design by Marc RABAHI and encelades.