Docker Health Checks and Useful Probes
How a HEALTHCHECK moves from starting to unhealthy, why plain Docker never restarts an unhealthy container, and what a good probe checks.
Focused explanations and longer guides, with worked scenarios, common mistakes and interview exercises across every chapter.
Showing 409–432 of 825 articles
How a HEALTHCHECK moves from starting to unhealthy, why plain Docker never restarts an unhealthy container, and what a good probe checks.
What the build context is, why COPY . . can ship your .env and .git, and how to write .dockerignore patterns that match nested folders.
An image is a read-only template; a container is that template plus a writable layer and a process. See what survives stop, start and rm.
An image is frozen the day it's built. Keep bases patched with scheduled rebuilds, --pull, digest pins with automated bumps and EOL tracking.
Tags are movable pointers and digests are not. Learn why latest breaks rollbacks, how to tag releases, and when to pin images by sha256.
Why one edited source file can rerun npm install: how BuildKit's layer cache keys each step, and how to order a Dockerfile so rebuilds stay fast.
docker logs only shows stdout and stderr. Fix empty logs, Python buffering and unrotated json-file growth, then pick a logging driver.
Compile in one stage, ship only the output in the next: how a 400 MB build image became a 313 kB runtime, and what a scratch image gives up.
Why containers can't resolve each other on the default bridge, how the 127.0.0.11 resolver works, and why nginx keeps a stale upstream IP.
Switching a container to a nonroot USER breaks writes until ownership is right. Fix EACCES with chown, numeric UIDs and pre-created volume paths.
EXPOSE documents a port; -p opens one on the host. Bind addresses, -P, the 127.0.0.1 trap inside containers and the ufw bypass on Linux.
Run a container with --read-only, find the paths it still needs to write, and give each one a sized tmpfs or volume without reopening the rest.
Memory limits end in a silent OOM kill and CPU limits in throttling. Size a container so the runtime inside it agrees with the cgroup outside.
Build args and ENV values stay readable in docker history and image config. Pass build-time credentials with BuildKit secret mounts instead.
Why docker stop sometimes takes the full timeout and ends in exit 137, and how PID 1, exec form and a SIGTERM handler fix shutdown.
Named and anonymous volumes outlive containers in different ways. Trace which commands keep data, which delete it, and how to back it up.
Backtracking and Safe Pruning Rules. Learn the reasoning, a practical example, common mistakes and an interview exercise.
Big-O Complexity and Input Growth. Learn the reasoning, a practical example, common mistakes and an interview exercise.
Binary Search on an Answer Space. Learn the reasoning, a practical example, common mistakes and an interview exercise.
Binary Search and Explicit Boundaries. Learn the reasoning, a practical example, common mistakes and an interview exercise.
Dynamic Programming and State Definition. Learn the reasoning, a practical example, common mistakes and an interview exercise.
Graph DFS States and Cycle Detection. Learn the reasoning, a practical example, common mistakes and an interview exercise.
Hash Maps for Frequency and Membership Problems. Learn the reasoning, a practical example, common mistakes and an interview exercise.
Heaps for Top-K and Incremental Selection. Learn the reasoning, a practical example, common mistakes and an interview exercise.
No notes match that… try another filter.