IssueRaiser

[Feature request] Dry run mode for prune commands

The new `prune` commands are potentially dangerous and I find it hard to predict what actually would be deleted. The user might use `docker system df` and `docker image ls --filter dangling=true` to get to this information, but this seems like an unneccessary step. I propose to add a new operating mode where the normal output is produced without actually deleting the objects. ```bash $ docker system prune --dry-run Warning: Running in dry run mode, not actually deleting anything. Deleted Volumes: dockerdev-go-pkg-cache-gopath dockerdev-go-pkg-cache-goroot-linux_amd64_netgo Total reclaimed space: 112.1 MB ``` The user could then decide to run the same command again without `--dry-run`.

Posted by albers on Feb 1, 2017, 8:25 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

ux (Other)

[Feature request] Dry run mode for prune commands

albersFeb 1, 2017, 8:25 AM

The new `prune` commands are potentially dangerous and I find it hard to predict what actually would be deleted. The user might use `docker system df` and `docker image ls --filter dangling=true` to get to this information, but this seems like an unneccessary step. I propose to add a new operating mode where the normal output is produced without actually deleting the objects. ```bash $ docker system prune --dry-run Warning: Running in dry run mode, not actually deleting anything. Deleted Volumes: dockerdev-go-pkg-cache-gopath dockerdev-go-pkg-cache-goroot-linux_amd64_netgo Total reclaimed space: 112.1 MB ``` The user could then decide to run the same command again without `--dry-run`.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue