Debugging & Troubleshooting in Docker

From the Docker cheat sheet ยท System & Cleanup ยท verified Jul 2026

Debugging & Troubleshooting

Debug containers and resolve common Docker issues

bash
# Debug running container
docker logs container_name
docker logs -f --tail 50 container_name
docker exec -it container_name sh

# Inspect details
docker inspect container_name
docker inspect image_name

# Debug build
docker build --no-cache --progress=plain .

# Check processes
docker top container_name

# File changes
docker diff container_name
๐Ÿ’ก nicolaka/netshoot has many network tools
๐Ÿ” Use --progress=plain for detailed build output
๐Ÿ“Œ Override entrypoint to debug failed containers
โœ… Always check logs first when debugging

Continue with Docker

Save the full cheat sheet or work through every related task.

More Docker tasks

Back to the full Docker cheat sheet