CodeReady Containers is a solution from Red Hat, which provides a minimal and preconfigured OpenShift 4
cluster on a notebook or desktop machine for development and testing purposes. It gets delivered as a Red
Hat CoreOS (RHEL) based virtual machine, this is what has to be done to get Red Hat CodeReady Containers
installed and running.
Physical requirements : 4 virtual CPUs (vCPUs) | 9 GB memory (RAM) | 35 GB of storage space
Run these commands :
$ mkdir /home/<user>/crc
$ wget https://mirror.openshift.com/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz
$ tar -xvf crc-linux-amd64.tar.xz
$ mv /home/<user>/crc-linux-<version>-amd64/* /home/<user>/crc
$ rm /home/<user>/crc-linux-amd64.tar.xz
$ rm -r /home/<user>/crc-linux-<version>-amd64
$ cd /home/<user>/crc
$ chmod +x crc
$ export PATH=$PATH:/home/<user>/crc
To set up and start the cluster - execute :
$ crc setup
$ crc start -p /<path-to-the-pull-secret-file>/pull-secret.txt
To set up the OC environment - execute :
$ crc oc-env
$ eval $(crc oc-env)
To login as the developer user - execute :
$ oc login -u developer -p developer https://api.crc.testing:6443
$ oc logout
To login as the platform admin - execute :
$ oc login -u kubeadmin -p <password> https://api.crc.testing:6443
$ oc logout
To start the graphical web console - execute : $ crc console
To display the status of the cluster - execute : $ crc status
To shutdown the OpenShift cluster - execute : $ crc stop
Red Hat additionally provides odo (OpenShift Do), a CLI tool for developers, to manage application
components on the OpenShift Container Platform. To use odo - execute the following commands :
$ wget https://mirror.openshift.com/pub/openshift-v4/clients/odo/latest/odo-linux-amd64.tar.gz
$ tar -xvf odo-linux-amd64.tar.gz
$ mv /home/<user>/odo /home/<user>/crc
$ rm odo-linux-amd64.tar.gz
$ cd /home/<user>/crc
$ chmod +x odo
CRC Getting Started Guide and Release Notes :