O'Reilly logo

Orchestrating Docker by Shrikrishna Holla

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

Chapter 3. Configuring Docker Containers

In the previous chapter, we saw all the different commands available in Docker. We took a look at examples covering how to pull images, run containers, attach images to containers, commit, and push an image to the repositories. We also learned how to write Dockerfiles to make building an image a repeatable process.

In this chapter, we will look closer at gaining control over how our containers run. Although Docker containers are sandboxed, this doesn't prevent a stray rogue process in one of the containers from hogging the resources available to other containers, including the host. For instance, beware of this command (don't run it):

$ docker run ubuntu /bin/bash -c ":(){ :|:& };:"

You would fork bomb the ...

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