Docker Interview Questions
4 questions
Your CI pipeline's Docker build takes 12 minutes and produces a 1.8GB image for a small Node.js service. How would you diagnose and fix it?
IntermediateDockerNodejsCI/CD10 min
Two containers on the same Docker host can't talk to each other over the network, even though both are running. How would you debug the connection?
BeginnerDocker8 min
A Jenkins pipeline stage runs `docker build`. It works fine when run by hand on the agent, but fails in the pipeline with a permission denied error talking to the Docker daemon. Why?
IntermediateJenkinsDocker8 min
A Python script that processes a large file works fine on your laptop but gets OOM-killed when run in a container with a memory limit. What's likely wrong, and how do you fix it?
IntermediatePythonDocker8 min