-
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
Docker compose: automatically attaching to running containers from different docker-compose.yml files #9416
Comments
@bynov Really. It's seems a bug! I got some evidents: My previous version (1.29.2):After updated to
|
Hey, I had this problem myself. |
I just saw this after filing yesterday, but I think this may be a manifestation of the same bug that I reported in #9459 When I try out the reproduction steps listed in the ticket before 9d73cc8 is applied, I am not able to reproduce the bug that @bynov describes. When I checkout 9d73cc8 I am able to reproduce this bug. Should I close my ticket and merge into this one? |
The same bug for me |
Docker Compose version v2.5.0 have same problem. |
I can't reproduce with the
Can you give more details, are the compose files in the same directory? Are you the compose files in your screenshots complete (no other extra services with maybe links or dependencies with other services)? Can you also try to a name to your compose file to be sure that compose with manage the both stack with a dedicated namespace? Like that :
|
@bynov @henriqueholtz @diegoquiroz @michaeldiscala @woolfi182 @changleilei can you confirm that you still have the issue with the |
I checked with different configs and it works well for me. I don't have the issues I had prev. My version is |
Description
I'm using two different
yml
files to run different set of services.Before the last update I did several days ago, I run
docker compose -f first.yml
anddocker compose -f second.yml
in different console tabs and all worked fine.After last update when I'm trying to run
second.yml
right afterfirst.yml
I see that it automatically attaches to services fromfirst.yml
. And because of that I can't stop them separately and I see huge log from both services in all my tabs.I don't see the way how to prevent it and I assume something was changed after last update I did.
Steps to reproduce the issue:
service-1
in first file andservice-2
in second.docker compose -f first.yml up
and second one in separate tab or consoledocker compose -f second.yml up
Describe the results you received:
I see that second command automatically attaches to services from
first.yml
and shows logs from it. Also if I press Ctrl+C in first or second consoe, it will stopservice-1
andservice-2
,Describe the results you expected:
It should work as previous: logs in different consoles should be separated and if I will press Ctrl+C in first or second console, it should stop only services within manifest file, not all.
Additional information you deem important (e.g. issue happens only occasionally):
Started after last update several days ago.
Output of
docker compose version
:Output of
docker info
:Additional environment details:
It works as I expect at docker desktop 4.5.0. I tried to use 4.6.1 - same invalid behavior.
The text was updated successfully, but these errors were encountered: