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.

C.1. Getting running containers

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

Get OpenShift in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.