Skip to content
Docker

Image Management

Pull, list, tag, push, and prune images.

#image#registry#maintenance

Code

docker
# Pull and list images
docker pull postgres:16-alpine
docker images

# Tag and push to a registry
docker tag myapp:1.0 registry.example.com/myapp:1.0
docker push registry.example.com/myapp:1.0

# Inspect and history
docker inspect postgres:16-alpine
docker history myapp:1.0

# Remove unused images
docker image prune -a
docker rmi myapp:1.0