mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
Add anonymous volumes autoremove info (#13471)
* Add anonymous volumes autoremove info Anonymous volumes aren't removed if another container adopts them with `--volumes-from`, see: https://github.com/docker/docker.github.io/issues/13435 * Format Note Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
This commit is contained in:
@@ -578,6 +578,12 @@ the Docker Engine removes the `/foo` volume but not the `awesome` volume.
|
||||
$ docker run --rm -v /foo -v awesome:/bar busybox top
|
||||
```
|
||||
|
||||
> **Note**:
|
||||
>
|
||||
> If another container binds the volumes with
|
||||
> `--volumes-from`, the volume definitions are _copied_ and the
|
||||
> anonymous volume also stays after the first container is removed.
|
||||
|
||||
### Remove all volumes
|
||||
|
||||
To remove all unused volumes and free up space:
|
||||
|
||||
Reference in New Issue
Block a user