Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions content/manuals/engine/manage-resources/pruning.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ for all options, including `--all` to also remove internal and frontend images.
## Prune everything

The `docker system prune` command is a shortcut that prunes images, containers,
and networks. Volumes aren't pruned by default, and you must specify the
`--volumes` flag for `docker system prune` to prune volumes.
and networks. Volumes aren't pruned by default. Add `--volumes` to also remove
unused **anonymous** volumes. Named unused volumes are left alone; use
`docker volume prune --all` if you intend to delete those too.

```console
$ docker system prune
Expand All @@ -183,17 +184,17 @@ WARNING! This will remove:
Are you sure you want to continue? [y/N] y
```

To also prune volumes, add the `--volumes` flag:
To also prune unused anonymous volumes, add the `--volumes` flag:

```console
$ 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 anonymous volumes not used by at least one container
- all dangling images
- all build cache
- unused build cache

Are you sure you want to continue? [y/N] y
```
Expand Down