How to do it...

Now that we have a VM set up with Docker running and the OpenShift binaries installed, we can start up our cluster using the oc binary. OpenShift has a web console that you can log into, but in order for it to work correctly, OpenShift will need to be able to determine your IP address. If your VM has more than one, you might need to explicitly tell OpenShift which one to use when starting the cluster. In the example here, my public IP address is 142.93.14.79; your IP will be different:

$ oc cluster up --public-hostname=<your ip>

After a few minutes, the cluster is up and running, and you will see something like this:

At this ...

Get Docker Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.