Home › Learn by Playing › Skills › Docker

Learn Docker free, step by step

Package any app so it runs the same everywhere.

9 units · 80 cards · Basic → Intermediate → Advanced · free, no login

Start learning Docker ▶

How it works

Try a few cards

💡 Learn

Images and containers

An image is a packaged template: your app plus everything it needs to run. A container is a running copy of an image. One image can start many containers.

Try it

What is a Docker image?

  • A backup of a database
  • A packaged template with the app and everything it needs to run
  • A running server
  • A screenshot of the app
Show the answer

✓ A packaged template with the app and everything it needs to run. An image is the package (code, libraries, settings). A container is a running copy of that image.

Try it

Ravi starts three containers from the same nginx image. What happens to the image?

  • It changes into a container
  • It is deleted after the first container starts
  • It is used up, so he needs three images
  • It stays the same; each container is a separate running copy
Show the answer

✓ It stays the same; each container is a separate running copy. An image is a read-only template. You can start many containers from one image.

Full syllabus

Basic · 3 units

  1. Images vs containers
  2. run, ps, stop
  3. Dockerfile

Intermediate · 4 units

  1. Volumes
  2. Networks
  3. Docker Compose
  4. Registries

Advanced · 2 units

  1. Multi-stage builds
  2. Image size and security

Start learning Docker ▶

Kramavriddhi Learn is free and independent. Facts are checked against the official documentation. Badges are self-checks, not official certificates. Found a mistake or have an idea? Tell us.