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
[BUG] v2.23.0 broke docker-compose down -v --remove-orphans NAME ? #11203
Comments
I can confirm this is a regression |
Unfortunately, the fix for this bug has the side effect that it is now impossible to use For instance, consider the following services:
foo:
image: busybox
command: sleep inf
bar:
image: busybox
command: sleep inf
profiles:
- bar If I bring up the
However, if I try to bring down the deployment using
In order to bring down the whole deployment, I now have to do the following:
This is quite inconvenient to me. |
"orphans" targets containers created by To cover your use case, you can either ru |
@ndeloof thanks, this solved my problem! |
Description
I have a
docker-compose.yml
file with multiple common services,db
,redis
,proxies
,etc
, referenced to viadepends_on
, and a few main services,web1
,web2
, etc.After starting all services correctly, if I try to bring one service down using:
docker-compose down -v --remove-orphans web1
With version
v2.23.0
and up, it will bring down all services listed in the docker-compose file (includingweb2
, the common services, etc)With version
v2.22.0
and bellow, it will bring down only the expected serviceweb1
, and any other service which is not being depended on.Is this an expected behaviour? or a bug which was introduced via v2.23.0 with the profile updates?
Steps To Reproduce
No response
Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: