Chapter 2. Running software in containers

 

This chapter covers

  • Running interactive and daemon terminal programs in containers
  • Basic Docker operations and commands
  • Isolating programs from each other and injecting configuration
  • Running multiple programs in a container
  • 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 to control basic process isolation with Docker. Most examples in this book use real software. Practical examples will help introduce Docker features and illustrate how you will use them in daily activities. Using off-the-shelf images also reduces the learning curve for new users. If you have software that you want to containerize and you’re in a rush, then part 2 will likely answer more of your direct questions.

In this chapter, you’ll install a web server called NGINX. Web servers are programs that make website files and programs accessible to web browsers over a network. You’re not going to build a website, but you are going to install and start a web server with Docker.

2.1. Controlling containers: Building a website monitor

2.2. Solved problems and the PID namespace

2.3. Eliminating metaconflicts: Building a website farm

2.4. Building environment-agnostic systems

2.5. Building durable containers

2.6. Cleaning up

Summary

sitemap