Loading tutorials
docker run, docker build), can use a Linux shell, and understand that a container is a process with a state. Before you look at logs or exit codes, you need to find the right container and read what Docker already knows about it.2 min readdocker run, know what ENTRYPOINT and CMD do, and are comfortable with a Linux shell. Logs are usually the first evidence of why a container failed, so you read them right after you find the container with docker ps and docker inspect.2 min readdocker run, know the difference between ENTRYPOINT and CMD, and understand that Linux processes can receive signals. Here you will learn to turn a container's exit code into a first hypothesis about why it stopped.3 min readdocker ps output, and use basic Linux commands such as ls, cat, and ps. You should also know the difference between an image's ENTRYPOINT and CMD.3 min readdocker run and docker logs, you know the difference between ENTRYPOINT and CMD, and you can read an exit code. If the container dies in under a second, you often cannot docker exec into it, because there is no running process to attach to. The fix is to sta3 min readdocker inspect output and know that exit code 137 means a process received SIGKILL (128 + 9). Here you will learn to tell an out-of-memory (OOM) kill from other causes of 137, and to find the memory pressure behind it.2 min readdocker ps output and docker inspect state, and that you know how exit codes work. A restart policy tells the Docker daemon what to do when a container's main process exits. A crash loop appears when a policy keeps restarting a container that fails every time.2 min readdocker inspect output, and have read the earlier chapters on exit codes and restart policies. A running container is not always a working one. A health check lets Docker test that the service inside actually responds.2 min readdocker inspect show you the state of one container now. docker events shows you what the Docker daemon did over time, which helps when a container disappears, restarts, or fla2 min readdocker inspect output, and know that a container is a normal Linux process with its own namespaces. A namespace is a kernel feature that gives a process its own view of something, such as the process list or the network stack.2 min readdocker inspect output, run docker exec, and know the basics of ports and DNS. It covers how to tell whether a network failure comes from the container, the network, or the target service.2 min readdocker exec and docker inspect. It also assumes you know Linux file ownership (user IDs, group IDs, and mode bits). Storage problems usually show up as missing files, "permission denied", or data that disappears. You can find the cause by comparing what t2 min readdocker inspect, read logs, and interpret exit codes. It covers what to do when a container has already stopped and you need to see what it left behind.3 min readcompose.yaml file, and have read the earlier chapters on docker ps, docker inspect, docker logs, and exit codes. Compose runs several containers as one project. The debugging steps are the same as for a single container, but you2 min read