LearnThatStack Ace your next interview
Practice · Questions

All questions

Showing of 45
Beginner 11
01

What is Docker and how does it differ from virtual machines?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Docker is a containerization platform that packages an application and its dependencies into lightweight, portable containers. Unlike virtual machines (VMs), which virtualize an entire operating system, Docker containers share the host OS kernel while keeping each application isolated.

The key differences:

  • Containers use fewer resources, because they share the host kernel.
  • Containers start in seconds, while VMs take minutes.
  • Containers run the same way across different environments.
  • VMs give stronger isolation, but at a higher overhead cost.
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

02

Explain the Docker architecture and its main components.

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Docker uses a client-server architecture. The docker CLI is the client. It sends each command over a REST API to the Docker daemon, dockerd, which builds, runs and distributes containers.

Its main components:

  • The Docker client is the command-line interface, and it can talk to a local or remote daemon.
  • The Docker daemon is a background service that manages containers, images and networks.
  • An image is a read-only template used to create containers.
  • A container is a running instance of an image.
  • A registry stores images. Docker Hub is the default public registry, and you can also run a private one.
  • Docker Engine is the complete platform: the daemon, its REST API and the CLI.

Below the daemon, containerd manages each container's lifecycle, and it uses runc to create the container itself.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

03

What is a Docker image and how is it different from a Docker container?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

A Docker image is a read-only template that holds the application code together with its runtime, libraries and dependencies. A Docker container is a running instance of an image.

The key differences:

  • An image is an immutable blueprint. A container is a mutable runtime environment, with its own writable layer on top of the image.
  • You store and share an image. A container is what runs your application's process.
  • You can create many containers from a single image.
  • Changes made inside a container don't affect the original image.

For example:

# Image exists as a template
docker images
# Container is created and runs from image
docker run nginx
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

04

What are the main benefits of using Docker?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Docker's main benefit is consistency. An image carries the app together with its dependencies, so code that works on a developer's machine behaves the same in testing and production.

Other benefits:

  • Applications run anywhere Docker is installed, which makes them portable.
  • Scaling out means starting more containers from the same image.
  • Containers share the host kernel and run no guest OS, so they need fewer resources than a traditional virtual machine.
  • Setting up a development environment is instant, so development cycles are faster.
  • Each service runs in its own container, which suits breaking a monolith into microservices.
  • CI/CD pipelines build, test and deploy the same image at every stage.
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

05

How do you create a Docker container from an image?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Use docker run, which creates a container from an image and starts it in one step. If the image isn't on the host yet, Docker first pulls it from the registry.

docker run does the work of two commands. docker create makes the container by adding a writable layer on top of the image, and docker start runs its main process. Docker also connects the container to the default network unless you choose another one.

The flags below name the container, publish a port, and run it detached or interactively.

# Basic container creation
docker run nginx
# Run with custom name and port mapping
docker run --name my-nginx -p 8080:80 nginx
# Run in background (detached mode)
docker run -d --name web-server nginx
# Run interactively
docker run -it ubuntu bash

When the main process exits, the container stops but isn't removed, so you can start it again later.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

06

Explain the difference between docker run and docker start.

Part of Pro
07

What is a Dockerfile and what are its key instructions?

Part of Pro
08

What is Docker port mapping and how does it work?

Part of Pro
09

What are Docker volumes and why are they important?

Part of Pro
10

What is Docker Compose and when would you use it?

Part of Pro
11

How do you clean up Docker resources (images, containers, volumes)?

Part of Pro
Intermediate 29
12

How do you manage the container lifecycle (start, stop, restart, remove)?

Part of Pro
13

What is the difference between the COPY and ADD instructions in a Dockerfile?

Part of Pro
14

Explain the difference between CMD and ENTRYPOINT.

Part of Pro
15

What are multi-stage builds and why are they useful?

Part of Pro
16

How do you optimize Docker image size?

Part of Pro
17

Explain Docker networking modes.

Part of Pro
18

How do containers communicate with each other?

Part of Pro
19

Explain the difference between volumes, bind mounts, and tmpfs mounts.

Part of Pro
20

How do you backup and restore Docker volumes?

Part of Pro
21

Explain the key sections of a docker-compose.yml file.

Part of Pro
22

How do you scale services using Docker Compose?

Part of Pro
23

What are Docker security best practices?

Part of Pro
24

How do you run containers as non-root users?

Part of Pro
25

How do you monitor Docker container performance?

Part of Pro
26

How do you limit container resources (CPU, memory)?

Part of Pro
27

What are container health checks and how do you implement them?

Part of Pro
28

How do you implement Docker in CI/CD pipelines?

Part of Pro
29

What is a Docker registry and how do you set up a private registry?

Part of Pro
30

How do you handle secrets in Docker containers?

Part of Pro
31

How do you debug a failing Docker container?

Part of Pro
32

What is the difference between docker exec and docker attach?

Part of Pro
33

What is the difference between ARG and ENV in a Dockerfile?

Part of Pro
34

What are Docker restart policies, and when do you use each one?

Part of Pro
35

What is the difference between the shell form and exec form of CMD and ENTRYPOINT?

Part of Pro
36

How does the Docker build cache work?

Part of Pro
37

Why is the latest tag risky, and how should you tag images?

Part of Pro
38

What is the difference between docker save and docker export?

Part of Pro
39

What are Docker build contexts and why do they matter?

Part of Pro
40

What is Docker Swarm and how does it compare to Kubernetes?

Part of Pro
Expert 5
41

What is Docker Content Trust and how does it work?

Part of Pro
42

What are common Docker performance issues and solutions?

Part of Pro
43

How do you handle container logs in production?

Part of Pro
44

Explain the Docker layered file system and how it works.

Part of Pro
45

How does Docker use Linux namespaces and cgroups to isolate containers?

Part of Pro

No matches

Try a different filter or search term.

Know someone prepping for Docker? Send them this set.
Pro · $10/mo

40 of 45 Docker answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

Serverless on AWS

Serverless Architecture on AWS

Flutter Mobile

Flutter Cross-Platform Mobile Development

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

AI Engineer

LLMs, RAG, Agents, Evals

AI-Powered Developer

Claude Code, Copilot, Agentic Workflows

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git