Chapter 14: Docker Security

In this chapter, we will take a look at Docker security, a topic at the forefront of everyone's mind these days. We will split the chapter up into the following five sections:

  • Container considerations
  • Docker commands
  • Best practices
  • The Docker Bench security "applications"
  • Third-party security services

Technical requirements

In this chapter, we will be using Docker Desktop, and we will be using Multipass to launch a Docker host that we will then launch some poorly configured container on. As in the previous chapters, I will be using my preferred operating system, which is macOS.

As previously, the Docker commands that we will run will work on all three of the operating systems that we have installed Docker on so ...

Get Mastering Docker - Fourth Edition 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.