Difference between revisions of "Docker system prune"
Jump to navigation
Jump to search
↑ https://docs.docker.com/v17.12/edge/engine/reference/commandline/system_info/
↑ https://docs.docker.com/v17.12/edge/engine/reference/commandline/system_events/
Line 44: | Line 44: | ||
− | == Related | + | == Related == |
* <code>[[docker system df]]</code> or <code>[[docker system df]] --verbose</code> | * <code>[[docker system df]]</code> or <code>[[docker system df]] --verbose</code> | ||
* <code>[[docker image prune]]</code> | * <code>[[docker image prune]]</code> | ||
Line 53: | Line 53: | ||
* <code>[[docker network prune]]</code> | * <code>[[docker network prune]]</code> | ||
* <code>[[docker volume prune]]</code> | * <code>[[docker volume prune]]</code> | ||
+ | * <code>[[Docker is nearly out of disk space]]</code> | ||
== Activities == | == Activities == |
Revision as of 14:17, 20 September 2022
https://docs.docker.com/engine/reference/commandline/system_prune/. Since API 1.25+ (v 1.13) 01/2017 announcement
Use carefully, your stopped containers will be deleted.
docker system prune
docker system prune -a
docker system prune -f
(-f
Do not ask for confirmation)
docker system prune --all --volumes --force
docker system prune
WARNING! This will remove: - all stopped containers - all networks not used by at least one container - all dangling images - all dangling build cache
docker system prune -a
Remove all unused images not just dangling (untagged) ones
docker system prune -a WARNING! This will remove: - all stopped containers - all networks not used by at least one container - all images without at least one container associated to them - all build cache Are you sure you want to continue? [y/N] y ..../.... Total reclaimed space: 301MB
docker volume ls
journalctl -r -u dockerd Sep 15 15:49:41 SERVER_NAME dockerd[1015]: time="2020-09-15T15:49:41.387495853+04:00" level=warning msg="failed to prune image docker.io .../... No such image:
Related
docker system df
ordocker system df --verbose
docker image prune
docker image rm
docker network ls
docker volume ls
docker image ls
docker network prune
docker volume prune
Docker is nearly out of disk space
Activities
- Read deletes docker roadmap statements: https://github.com/docker/distribution/blob/master/ROADMAP.md#deletes
See also
du, du -hs
, Disk space usage,df
,ls
,tree
,find
,docker system df
,journalctl --disk-usage
, No space left on device, ENOSPC,sar -F
,growpart
,resize2fs
, ncdu, duf, dua-cli- docker system:
docker system info
[1],docker system events
[2],docker system df
,docker system prune -a
- Docker:
docker-compose
, Docker Desktop, Docker Scout, Docker Swarm, Docker Volumes, Docker images management, docker network,docker inspect
,docker volume inspect
,Dockerfile
, Docker Engine release notes,docker kill
,moby
, Docker-in-Docker,docker context
,buildx
,docker tag
,docker system prune
, Docker Hub,hub-tool, /etc/docker/daemon.json
,hostconfig.json
, dockerd, logs, Docker logging, Backup,docker service
,depends on
,--dns, --filter
,--mount
,docker login
,docker build
,apt remove docker.io
,.dockerignore
, docker context ls |docker-machine, .docker/
, PWD,$HOME/.docker/config.json
, Docker ID,--env-file, docker --help
Advertising: