Docker Hub

Pulling Images

Docker Hub is the default public registry. Prefer Official Images and Verified Publishers: they are maintained and scanned.

Example

docker pull postgres:16-alpine

Example output

16-alpine: Pulling from library/postgres
Digest: sha256:4c1b...e9a2
Status: Downloaded newer image for postgres:16-alpine
docker.io/library/postgres:16-alpine

Pushing Your Own Image

docker login
docker tag myapp:1.0 yourname/myapp:1.0
docker push yourname/myapp:1.0

Tip: Choose small base image variants: -slim (Debian, smaller) or -alpine (tiny, but uses musl libc, which some Python wheels do not support).