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.

MediumTechnical
73 practiced

A large model or data file needs to be available to an inference container, and it's updated periodically without wanting to rebuild the image every time. Compare baking the file into the image, mounting it as a volume, and downloading it at container startup: discuss image size, deployment speed, reproducibility, and how you'd make sure a running instance references the correct version and can be rolled back.

HardTechnical
51 practiced

A faulty release tagged prod just got deployed. Walk through how you'd perform an immediate rollback to the previous known-good image using image digests with a Docker Compose stack, and how automation (recording the last-known-good digest, a one-command rollback script) could make this safer and faster next time.

MediumTechnical
44 practiced

How would you containerize a training job that needs a GPU? Discuss the host driver and container runtime requirements, choosing a CUDA-enabled versus CPU-only base image, how you pass GPUs into the container (--gpus, the NVIDIA Container Toolkit), and the common pitfalls that leave GPU devices invisible inside the container.

HardTechnical
47 practiced

An image that used to be around 900 MB is now over 4 GB after recent changes. Walk through how you'd investigate layer by layer to find the source of the bloat, and name the most common Dockerfile or package-manager mistakes that cause images to balloon like this.

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?

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.