// Ship software anywhere.
DOCKER CHANGED HOW WE DEPLOY SOFTWARE.
Containers package applications with their dependencies, ensuring consistency across environments. From development to production, Docker eliminates "it works on my machine" and enables true DevOps workflows.
WHY DOCKER?
Docker containers are lightweight, fast, and isolated. They share the host OS kernel, making them more efficient than virtual machines. Package once, run anywhere—on your laptop, servers, or cloud.
BECOME A CONTAINER NATIVE.
Learn Dockerfiles, images, volumes, networking, and orchestration. Join millions of developers who ship faster with containers.
12 lessons. Complete Docker control.
Containerize applications for consistent deployment
BeginnerBuild images and manage running containers
BeginnerWrite Dockerfiles to automate image creation
BeginnerPersist data beyond container lifecycle
IntermediateConnect containers and expose services
IntermediateOrchestrate multi-container applications
IntermediateStart, stop, inspect, and manage containers
IntermediateBuild, tag, push, and pull Docker images
IntermediateSecurity, optimization, and production guidelines
AdvancedLogs, exec, and troubleshooting techniques.
IntermediatePush images to Docker Hub and private registries.
AdvancedSwarm, Kubernetes, and scaling strategies.
AdvancedDocker was released in 2013 by Solomon Hykes and the team at dotCloud. It revolutionized software deployment by introducing containerization—a way to package applications with all their dependencies into portable units.
Unlike virtual machines, containers share the host operating system kernel, making them incredibly lightweight. A container can start in seconds and uses a fraction of the resources of a VM.
Today, Docker powers modern DevOps workflows. Companies use it for continuous integration, microservices architecture, and cloud-native development. Kubernetes orchestrates containers at scale.
The future of deployment is containers. Own it.
Docker is an open platform for developing, shipping, and running applications using containerization technology. Containers package an application with all its dependencies, ensuring consistent behavior across environments.
1. Docker uses _____ technology.
Hint: Packaging method
2. Docker containers share the host _____.
Hint: Core of OS
3. Docker stores images in _____.
Hint: Docker Hub
4. dockerd is the Docker _____.
Hint: Background service
5. The CLI controls Docker through the _____.
Hint: Background process
6. Containers are more _____ than VMs.
Hint: Less resource usage
7. Docker enables _____ dev-to-prod workflows.
Hint: Same everywhere
8. Run your first container with docker _____.
Hint: Command
Docker images are read-only templates used to create containers. They contain the application code, runtime, libraries, and dependencies.
Containers are running instances of images. They're lightweight and ephemeral—you can create, start, stop, and delete them.
1. Images are _____ templates.
Hint: Cannot be modified
2. Containers are _____ instances of images.
Hint: Active
3. docker ps shows _____ containers.
Hint: Active ones
4. docker ps -a shows _____ containers.
Hint: Including stopped
5. docker run creates a new _____.
Hint: From image
6. --name flag assigns a _____.
Hint: Label
7. --rm removes container on _____.
Hint: When stopped
8. docker exec runs commands in _____.
Hint: Running instance
A Dockerfile is a script containing instructions to build a Docker image. Each instruction creates a layer in the image.
1. Dockerfile instructions create _____.
Hint: Image structure
2. FROM sets the _____ image.
Hint: Starting point
3. RUN executes during _____.
Hint: Image creation
4. COPY copies from the _____.
Hint: Build directory
5. -t flags the _____ image.
Hint: Name/version
6. CMD is the _____ command.
Hint: Runs if no cmd given
7. Multi-stage builds reduce _____.
Hint: Final image
8. WORKDIR sets the _____ directory.
Hint: Current directory
Containers are ephemeral—data is lost when they're deleted. Volumes persist data outside the container's filesystem.
1. Volumes persist data _____ containers.
Hint: Not inside
2. -v flag creates a _____.
Hint: Filesystem link
3. Named volumes are managed by _____.
Hint: The platform
4. Bind mounts link _____ directory.
Hint: Local filesystem
5. :ro makes mount _____.
Hint: Cannot write
6. tmpfs stores data in _____.
Hint: RAM
7. docker volume ls lists all _____.
Hint: Storage units
8. Container data is lost on _____.
Hint: When removed
Docker provides different network drivers for various use cases.
1. bridge is the _____ network driver.
Hint: Standard
2. docker network create makes a _____.
Hint: Isolated layer
3. Containers on same network communicate via _____.
Hint: Name resolution
4. -p flag maps _____.
Hint: Network ports
5. 8080:80 means host port _____ to container 80.
Hint: Left side
6. -P maps to _____ host ports.
Hint: Automatic
7. host driver removes _____.
Hint: Network separation
8. none disables _____.
Hint: All connectivity
Docker Compose is a tool for defining and running multi-container applications. With a single command, you can start your entire stack.
1. Docker Compose manages _____ containers.
Hint: More than one
2. docker-compose.yml defines _____.
Hint: Application components
3. docker-compose up starts the _____.
Hint: All services
4. depends_on defines _____.
Hint: What starts first
5. docker-compose down stops and _____ containers.
Hint: Cleans up
6. Environment variables can come from _____ file.
Hint: Dot env
7. build key specifies the _____.
Hint: Image source
8. ports maps host to _____ ports.
Hint: Service ports
1. docker inspect shows _____.
Hint: Full container info
2. docker stats shows _____ usage.
Hint: CPU/memory
3. -f flag follows _____.
Hint: Real-time
4. --tail shows last N _____.
Hint: Output lines
5. -m flag limits _____.
Hint: RAM
6. --cpus limits _____.
Hint: Processing power
7. docker top shows running _____.
Hint: Programs
8. unless-stopped is a _____ policy.
Hint: Auto-recovery
Docker images consist of multiple read-only layers. Each instruction in a Dockerfile creates a new layer.
1. Docker images consist of _____ layers.
Hint: Many
2. docker history shows image _____.
Hint: Build history
3. docker tag creates an _____.
Hint: Additional name
4. docker push uploads to _____.
Hint: Docker Hub
5. docker prune removes _____ resources.
Hint: Not needed
6. docker save creates a _____ file.
Hint: Archive
7. -a flag means _____.
Hint: Everything
8. docker system prune cleans _____.
Hint: All types
1. Combine RUN commands to reduce _____.
Hint: Image structure
2. Put rarely changing instructions _____.
Hint: At top of Dockerfile
3. USER directive switches to _____ user.
Hint: Regular user
4. Use _____ versions in production.
Hint: Not latest
5. Alpine images are _____.
Hint: Minimal size
6. Multi-stage builds reduce _____.
Hint: Final image
7. Don
Hint: Passwords/keys
8. npm ci is faster than npm _____.
Hint: Package manager
1. docker exec runs commands in _____ container.
Hint: Active
2. Alpine uses _____ shell.
Hint: Not bash
3. Exit code 0 means _____ exit.
Hint: Success
4. HEALTHCHECK reports container _____.
Hint: Status
5. docker logs shows _____.
Hint: Stdout/stderr
6. Port conflict uses another _____.
Hint: Network port
7. Permission denied needs _____.
Hint: User permissions
8. --interval sets health check _____.
Hint: How often
Docker Hub is the default public registry for Docker images.
1. Docker Hub is the _____ registry.
Hint: Standard
2. docker login authenticates to _____.
Hint: Image server
3. localhost:5000 is a _____ registry.
Hint: On your machine
4. Image format: registry/_____.
Hint: Name
5. docker push uploads the _____.
Hint: To registry
6. Credentials stored in _____ config.
Hint: Directory
7. Tag specifies _____.
Hint: Image version
8. Organizations use their _____ name.
Hint: Group
1. JSON logging driver writes to _____.
Hint: Disk
2. Memory limits use _____ suffix.
Hint: Units
3. start_period waits before _____ health.
Hint: Initial
4. Docker secrets store _____ data.
Hint: Passwords/keys
5. Rolling update replaces _____ instances.
Hint: One by one
6. docker service _____ reverts changes.
Hint: Undo
7. update-delay is between _____.
Hint: Service updates
8. Syslog sends logs to _____.
Hint: System logger