Skip to content
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

using the --remove-orphans flag #14475

Closed
AlexSHuk opened this issue Aug 13, 2023 · 3 comments · Fixed by #14551
Closed

using the --remove-orphans flag #14475

AlexSHuk opened this issue Aug 13, 2023 · 3 comments · Fixed by #14551
Assignees

Comments

@AlexSHuk
Copy link

Describe the bug

the documentation states the following
Снимок экрана 2023-08-13 в 22 38 08
however, given the directory structure when cloning the repository
Снимок экрана 2023-08-13 в 22 40 05
the user will encounter a problem, namely:

  • when L3 containers starts, all L2 containers will be destroyed.
    Example:
  1. Running L2 containers
Снимок экрана 2023-08-13 в 22 43 02 2. Running L3 containers Снимок экрана 2023-08-13 в 22 44 38 You can see that all L2 containers were killed by the flag --remove-orphans

Steps to reproduce

Solution
use 2 different directories for L2 and L3 , for examples :
Снимок экрана 2023-08-13 в 22 52 08
in this case, when L3 starts with --remove-orphans flag , the L2 containers remain untouched
Снимок экрана 2023-08-13 в 22 50 45

Additional context

The --remove-orphans flag applies to all containers running within the Docker Compose project, regardless of the configuration file used to start them. Therefore, if there are other docker-compose.yml or docker-compose.*.yml files in the same directory, all containers not associated with any of these configuration files will be considered orphaned and will be removed when the --remove-orphans flag is used.

@AlexSHuk
Copy link
Author

@d1onys1us d1onys1us check please my issue .

@d1onys1us
Copy link
Contributor

@gitpoap-bot please give @AlexSHuk a gitpoap

@gitpoap-bot
Copy link

gitpoap-bot bot commented Aug 22, 2023

Congrats, @AlexSHuk ! You've earned a GitPOAP for your contribution!

GitPOAP: 2023 Taiko Contributor:

GitPOAP: 2023 Taiko Contributor GitPOAP Badge

Head to gitpoap.io & connect your GitHub account to mint!

Learn more about GitPOAPs here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants