Chapter 2. Running software in containers
This chapter covers
- Running interactive and daemon terminal programs with containers
- Containers and the PID namespace
- Container configuration and output
- Running multiple programs in a container
- Injecting configuration into containers
- Durable containers and the container life cycle
- Cleaning up
Before the end of this chapter you’ll understand all the basics for working with containers and how Docker helps solve clutter and conflict problems. You’re going to work through examples that introduce Docker features as you might encounter them in daily use.
You’ll use the docker command-line program throughout the rest of this book. To get you started with that, I want to show you how to get information about commands from the docker program itself. This way you’ll understand how to use the exact version of Docker on your computer. Open a terminal, or command prompt, and run the following command:
Running docker help will display information about the basic syntax for using the docker command-line program as well as a complete list of commands for your version of the program. Give it a try and take a moment to admire all the neat things you can do.