Unsecure containers on OCP 3.x

This assumes you already have openshift 3 up and running. Go read my previous post if you need to do that.

Allow containers to run as any user

set runAsUser to type: RunAsAny

oc edit scc restricted

runAsUser:
  type: RunAsAny

Deploy a docker hub image

create a project oc new-project ghost-blog --description="OMG a Ghost" --display-name="Ghost Blog"

add an app to the project oc new-app --docker-image=docker.io/ghost

check the status of the pod oc get pods

check the pod logs, use your pod name oc logs ghost-1-qmbf4

expose the service, use your wildcard domain oc expose svc ghost --hostname=ghost.openshift.example.com

look at interesting information about the pod and service oc describe pods ghost-1-qmbf4

oc describe svc ghost

open up a web browser and check out your new Ghost blog