Your First Container
Before we explain even one line of theory, you are going to run a real container. A container is simply a program that runs. One command, and you watch Docker fetch a tiny image (a ready-made package of a program) and run it on your machine in seconds. No setup, no Dockerfile — just proof that it wo
It is like using a vending machine or a microwave for the first time: you press the button and it just works. You do not need to know what is inside to use it.
- container
- One running instance of an image — that is, a program running right now. Just as you can bake many cakes from one recipe, you can run many containers from one image.
- image
- A ready-made, saved package of a program with everything it needs to run. It is the frozen 'recipe'; the container is the 'dish' you make from it.
- registry
- An online warehouse of images anyone can download from. When Docker needs an image you do not have, it 'pulls' it from there — like downloading an app from an app store.