compose/tests/fixtures/volume/docker-compose.yml
Nikola Kovacs 958758ff6d Remove anonymous volumes when using run --rm.
Named volumes will not be removed.
This is consistent with the behavior of docker run --rm.

Fixes #2419, #3611

Signed-off-by: Nikola Kovacs <nikola.kovacs@gmail.com>
2016-07-25 11:43:30 +02:00

12 lines
172 B
YAML

version: '2'
services:
test:
image: busybox
command: top
volumes:
- /container-path
- testvolume:/container-named-path
volumes:
testvolume: {}