7: Working with containers

Docker implements the Open Container Initiative (OCI) specifications. This means some of the things you’ll learn in this chapter will apply to other container runtimes and platforms that implement the OCI specifications.

I’ve divided the chapter into the following sections:

  • Container – The TLDR
  • Containers vs VMs
  • Images and containers
  • Check Docker is running
  • Starting a container
  • How containers start apps
  • Connecting to a container
  • Inspecting container processes
  • The docker inspect command
  • Writing data to a container
  • Stopping, restarting, and deleting a container
  • Killing a container’s main process
  • Debugging slim images and containers with Docker Debug
  • Self-healing containers with restart policies
  • The commands

Containers ...

Get Docker Deep Dive - Third 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.