O'Reilly logo

OpenShift in Action by Jamie Duncan and John Osborne

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required