Ad space (banner)
AD

Got the fundamentals? A structured Docker course is a fast way to level up.

Find Docker courses on Udemy

Affiliate link. Costs you nothing extra.

🐳Docker Lessons
Lesson 4 / 45

Images vs. Containers

This is the single most important distinction in Docker, and the one beginners most often blur. An image is a read-only template; a container is a running instance created from that image.

Think of the image as a blueprint or a cake mould, and the container as what comes out of it. From one image you can create as many containers as you like, and each runs independently.

Running docker images lists the templates you hold; docker ps lists the containers actually running. Two different commands, because they show two different things.

A common stumble is trying to "start an image" or "delete a running image." You start containers, and you can only delete an image once no container is using it.

In real work, keeping this separation clear is what makes commands like build, run, and rm feel obvious rather than arbitrary.

Docker
Try it (type this into the pseudo terminal)
docker images

🧑‍💻 You can type this command into the Docker pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)