mirror of
https://github.com/docker/cli.git
synced 2026-01-18 08:21:31 +03:00
This makes it so when calling `docker run --rm`, or `docker rm -v`, only volumes specified without a name, e.g. `docker run -v /foo` instead of `docker run -v awesome:/foo` are removed. Note that all volumes are named, some are named by the user, some get a generated name. This is specifically about how the volume was specified on `run`, assuming that if the user specified it with a name they expect it to persist after the container is cleaned up. Signed-off-by: Brian Goff <cpuguy83@gmail.com> Upstream-commit: dd7d1c8a02d8693aa4f381f82c5bbdcad9a5ff58 Component: engine
3.6 KiB
3.6 KiB