docker
find a container's docker-compose.yml
file
$ docker inspect 7e7c50e4caff | grep com.docker.compose.project.config_files
"com.docker.compose.project.config_files": "/opt/testfile/docker-compose.yml",
reclaim disk space
$ docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 4 1 3.566GB 2.509GB (70%)
Containers 1 1 469.1MB 0B (0%)
Local Volumes 42 3 13.26MB 12.15MB (91%)
Build Cache 0 0 0B 0B
$ docker system prune --volumes
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all volumes not used by at least one container
- all dangling images
- all dangling build cache
Are you sure you want to continue? [y/N] y
Total reclaimed space: 12.15MB
$ docker image prune -a
WARNING! This will remove all images without at least one container associated to them.
Are you sure you want to continue? [y/N] y
Total reclaimed space: 2.509GB
$ docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 1 1 1.056GB 0B (0%)
Containers 1 1 469.1MB 0B (0%)
Local Volumes 3 3 1.108MB 0B (0%)
Build Cache 0 0 0B 0B