[Avg. reading time: 3 minutes]
Containers
Images
The image is the prototype or skeleton to create a container, like a recipe to make your favorite food.
It contains
- The operating system
- Application code
- Dependencies
- Configuration files
- Everything else needed to run your application
Container
A Container is like the actual meal you cook from that recipe - it’s a running instance of an image. When you “run” an image, you create a container.
- They are isolated environments that run the application
- You can run multiple containers from the same image
- Each container has its own storage, network interface, and resources
- Containers can be started, stopped, moved, and deleted
If Image = Recipe, then Container = Cooked food.
Where to get the Image from?
Docker Hub
For both Podman and Docker, images are from the Docker Hub.