Problem scenario
You want to use OpenShift as opposed to Kubernetes. How do you deploy OpenShift to try it out?
Solution
1. Install Docker on Linux. We recommend you use a RedHat OS. The hardware requirements are not that high if you are just testing it for development and/or learning purposes. For directions on how to install Docker on a RedHat distribution of Linux, see this posting if it is in AWS. For directions on installing Docker on a RHEL VM in GCP, see this posting.
2. Run these three commands:
sudo service docker start
docker run -d --name "origin2" --privileged --pid=host --net=host -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys -v /sys/fs/cgroup:/sys/fs/cgroup:rw -v /var/lib/docker:/var/lib/docker:rw -v /var/lib/origin/openshift.local.volumes:/var/lib/origin/openshift.local.volumes:rslave openshift/origin start
docker exec -it origin2 bash
3. Now that you are inside the Docker container, run this command:
oc login # for the username and password use "test" and "test" respectively
4. Now you can run oc commands to test openshift. Try these:
oc version
oc whoami
(The above commands were mostly taken from OpenShift.org. The old link was https://docs.openshift.org/latest/getting_started/administrators.html, but this no longer works.)
FYI The "oc" command (which stands for OpenShift Client) is very similar to the way that kubectl works.