IT & Cloud free courses

Master the TrickProfessionalFree

Docker Container Foundations

Understand images, containers, port mappings and persistent data in a disposable local environment.

3 reading lessons · about 30 min ·written by MTT

The idea

An image packages filesystem contents and metadata for starting a container; a container is a running or stopped instance created from it. Containers typically share a host kernel rather than each running a complete guest operating system. Select trusted image sources and track versions. Tags can move, so repeatable deployments may need a specific digest and a considered update process.

Worked example

Two containers started from the same web-server image can have different names, runtime settings and writable layers. Changing a file in one container does not change the original image or the other container. Recreating an instance without persistent storage can discard its local changes.

Try it

Draw one image and two container instances. Label the shared image and separate writable layers. Explain which data survives if an instance is replaced without a volume. Write two checks you would make before trusting an image, including its source and version.

Lesson 1 of 3 · About 10 min

Separate images from containers

Check your understanding

Course quiz

Finish the course to unlock the quiz

Complete all 3 lessons and 5 questions open up here. You have 3 to go.

What you will learn

  • Distinguish an image from a running container
  • Explain host and container ports
  • Plan persistent storage and secret handling

Before you start

Prerequisites
Basic command-line familiarity. Practice is optional and requires an approved local container runtime.
Cost
Free introductory reading lessons, exercises and quiz. Optional third-party tools, hosting or AI subscriptions may cost money.

Original introductory lessons and assessment by Master the Trick. Estimated times include the suggested exercises.