-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a way to remove one-off containers created by docker-compose run
#2774
Comments
I don't have a strong preference for any of these, but I think we should do at least one of them for 1.7 |
There are some other options:
|
Another issue is even if you use docker-compose run --rm to remove the container, any volumes in the container are left behind as dangling volumes. docker-compose rm -f -v does not deal with these dangling volumes, nor does docker-compose down Note this does not reflect the behaviour of docker run --rm, which does remove volumes |
I vote for 2nd option. I use docker-compose in the CI environment (Jenkins), and I run tests with run off command, then use Even I'd use volumes to get test results immediately on host machine, |
This was done in #3178 |
Related to: #2593 and #943
Copied from: #2568, #2184
One-off containers created by
docker-compose run
are not removed by default, and aren't removed bydocker-compose rm
.We should do at least one of the following:
fig run
#943 - make--rm
the default forrun
rm
to include one-off containersrm
by defaultThe text was updated successfully, but these errors were encountered: