OpenShift pods are Kubernetes pods that represent a collection of containers, and each pod serves as a basic management unit. All containers in a pod share the same storage volumes and network. In order to get a list of pods in OpenShift, we can use the oc get pods command:
$ oc get pods
NAME READY STATUS RESTARTS AGE
ruby-ex-1-build 0/1 Completed 0 1h
ruby-ex-1-zzhrc 1/1 Running 0 56m
It is no different from the Kubernetes pod, which means behind the scenes it is a Docker container running. The only difference is that there are two containers now. One of them is a container (ruby-ex-1-build) that is used to build the final image with the source code applied. We can easily verify this by running the docker ps command inside the Minishift VM:
$ minishift ssh docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS...