-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Closed
Copy link
Labels
area/volumeskind/enhancementEnhancements are not bugs or new features but can improve usability or performance.Enhancements are not bugs or new features but can improve usability or performance.
Description
Description
Consider not deleting manually named volumes by default when running docker system prune
.
I now there is potentially a label filter coming soon but I am not sure that is enough.
A lot of people are using external named volumes with docker-compose and deleting those by default seems very risky to me.
Describe the results you expected:
By default only delete images without a manually given name.
Add a flag to delete all volumes, just like there is for images.
Output of docker version
:
Docker version 17.03.0-ce, build 60ccb22
docker-compose version 1.11.2, build dfed245
Output of docker info
:
Containers: 3
Running: 3
Paused: 0
Stopped: 0
Images: 78
Server Version: 17.03.0-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 159
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 977c511eda0925a723debdc94d09459af49d082a
runc version: a01dafd48bc1c7cc12bdb01206f9fea7dd6feb70
init version: 949e6fa
Security Options:
apparmor
Kernel Version: 3.19.0-74-generic
Operating System: Ubuntu 14.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.737 GiB
Name: orchestra
ID: L6ZS:PQC7:KLDK:TJZP:3LIL:K3JF:B3TZ:7WJO:VNFK:REUC:PXVT:X7FE
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
KarolBuchta, EugenMayer, andul, ericparton, MorbZ and 8 more
Metadata
Metadata
Assignees
Labels
area/volumeskind/enhancementEnhancements are not bugs or new features but can improve usability or performance.Enhancements are not bugs or new features but can improve usability or performance.