Containerization and Docker Fundamentals Questions

Packaging applications into containers: images and layers, Dockerfiles, registries, image optimization and security, container networking and storage, and the container runtime model. Covers how containers differ from virtual machines, image build and management, and the fundamentals that underpin any orchestration platform. The container primitive before orchestration.

EasyTechnical
46 practiced

What's the difference between COPY and ADD in a Dockerfile? Give two concrete examples where ADD's extra behavior (remote URL fetching, auto-extracting local tar archives) matters, and explain why COPY is generally preferred in production Dockerfiles.

MediumTechnical
38 practiced

Walk through Docker's client-daemon architecture: the Docker CLI/client, the dockerd daemon, and where containerd and runc fit underneath it via the OCI runtime spec. Then name the core objects a Docker user works with day to day (images, containers, registries, volumes, networks) and give one CI/CD example of each.

MediumTechnical
49 practiced

A containerized service doesn't shut down cleanly during deployments and leaves requests hanging for several seconds. Walk through how you'd investigate PID 1 behavior, signal handling, and graceful termination in Docker to find the cause.

HardTechnical
37 practiced

A latency-sensitive service shows occasional CPU throttling, memory pressure, and noisy-neighbor effects when several containers share a host. How would you tune container runtime settings (cgroups, CPU shares, --cpuset-cpus) and application behavior to improve tail latency and node stability, including how you'd share GPU resources fairly if the workload uses them?

MediumTechnical
49 practiced

Your CI Docker builds intermittently fail while downloading packages, with timeouts or 502s. Walk through how you'd systematically troubleshoot and mitigate this: retries, package mirrors, dependency caching, and how you'd rule out DNS or proxy issues on the CI runner network.

Unlock Full Question Bank

Get access to all Containerization and Docker Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.