Skip to content
StackDecode
BeginnerLesson 3 of 26

Images, containers and registries

How an image becomes a container, and where images live.

An image name looks like registry/namespace/name:tag, for example docker.io/library/python:3.12-slim. If you omit the registry it is Docker Hub; if you omit the tag it is latest.

bash
docker pull python:3.12-slim     # download an image
docker images                    # list local images
docker run python:3.12-slim python -c "print('hi')"
docker rmi python:3.12-slim      # delete an image

Many containers can start from one image. Changes inside a running container do not change the image.