The OpenShift cli contains a convenient utility for testing an OpenShift cluster. This guide will demonstrate how to
setup a single node cluster and execute a few commands.
Fedora/Centos/RHEL CLI Installation
Install the following packages
Alternative CLI Installation
Download oc cli client and install docker
Remaining Steps
Add your user to the docker group
Open a new shell. Add an insecure registry 172.30.0.0/16 to docker in the file /etc/containers/registries.conf
Start Docker
Start OpenShift
Login to the cluster as an administrator
Try running the busybox container in your project myproject
If you are running ocp inside a virtual machine, you may find it helpful to bind to a different ip address than localhost.
Subscribe Now
Subscribe to our newsletter for a round-up of the week's most popular articles.