content_image/709921.jpg
Switch to the default created project. 

# oc project default 

Step 7:  Create a Docker Registry. 

#echo '{"kind":"ServiceAccount","apiVersion":"v1","metadata":{"name":"registry"}}' | oc create -f - 

Edit the user privileges. 

#oc edit scc privileged users: - system:serviceaccount:openshift-infra:build-controller - system:serviceaccount:default:registry 

Create and edit the image registry. 

#oadm registry --service-account=registry -- config=/etc/openshift/master/admin.kubeconfig -- credentials=/etc/openshift/master/openshift-registry.kubeconfig -- images='registry.access.redhat.com/openshift3/ose-${component}:${version}' -- mount-host=/images 

Step 8:  Create a default routing. 

By default, OpenShift uses OpenVswitch as software network. Use the following command to create a default routing. This is used for load balancing and proxy routing. The router is similar to the Docker registry and also runs in a registry. 

# echo '{"kind":"ServiceAccount","apiVersion":"v1","metadata":{"name":"router"}}' | oc create -f - 

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

