Skip to content

Docker Commands

Remove images locally with a wildcard:

docker rmi --force $(docker images | grep <image-name> | tr -s ' ' | cut -d ' ' -f 3) `

Dockerhub Rate Limits

TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq --raw-output .token) && curl --head --header "Authorization: Bearer $TOKEN" "https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest" 2>&1 | grep ratelimit

Docker Disk Usage

docker system df