Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
I will attempt to expand more on each of these as I learn their usefulness in debugging the different phases of dockerization.

Debugging

Building a Container

...

  • docker stats <name or id> - shows memory usage / limits
  • docker run <id> - can use the id of incremental build images to boot into the failing state

...

Running a Container

...

  • docker events <id> - shows what docker daemon is doing in the background
  • docker inspect <name or id> - inspect a particular container's configuration
  • docker logs <id> - shows the logs of a particular container
  • nsenter - enter a particular namespace

Inspecting a Running Container

...

  • docker exec -it <name or id> /bin/bash

...