Appendix C. Working directly with Docker
Docker has its own command-line tool, aptly named docker. To get the information you need to dig deeper into how containers isolate applications in OpenShift, the docker command is your starting point.
Note
To interact directly with docker, you need to SSH into your application node and run the commands in this chapter as the root user.
The first thing we’ll walk through is how to get a list of all currently running containers on an application node.
After you log in to your application node, run docker ps at the command prompt. This command returns a list of all containers currently running on the application node. Each line in the output from docker ps represents a running container. The first value in each line is a shortened version of the container ID for that container. You can use this short ID—for example, fae8e211e7a7—to specify a container when you need to interact with it using the docker command. You can confirm whether the container is for app-cli or app-gui by the name of the image used to create the container.