mirror of https://github.com/docker/docs.git
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:
parent
e396d7aa86
commit
8b618a6795
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue