Show Docker disk usage
Detailed disk usage for each image, container and volume
docker system df -v
More docker commands
-
docker exec -it -u root <container> bashOpens a root shell even if the container runs as a non-root user
-
docker cp ./local-file.conf <container>:/etc/app/config.confPuts a file into a running container without rebuilding the image
-
docker load < img.tar.gzImports an image saved with docker save
-
docker exec -it registry bin/registry garbage-collect /etc/docker/registry/config.ymlFrees disk space in a self-hosted Docker Registry
-
docker build --target builder -t img:builder .Builds a multi-stage Dockerfile only up to the given stage