Software and Systems How-To's, Tutorials, Demos, Notes

How to run a docker image in OpenShift

Login into OpenShift

Important: Please substitute for “userX” the user id assigned to you

oc login -u userX

Create a new project

oc new-project tomcatX

Run the app

oc new-app bcorpusjr/tomcat

Allow the public to access your application

oc expose svc tomcat

Next Exercise: Adding a Database Using Templates