July 2018
Intermediate to advanced
504 pages
11h 34m
English
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 podsNAME READY STATUS RESTARTS AGEruby-ex-1-build 0/1 Completed 0 1hruby-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 ...