docker compose orphan containers warning - Stack Overflow (https://stackoverflow.com/Content/Sites/stackoverflow/Img/apple-touch-icon.png?v=9168b8ec82a5) (Stack Overflow) (https://stackoverflow.com/opensearch.xml) (https://stackoverflow.com/questions/50947938/docker-compose-orphan-containers-warning) (Feed for question 'docker compose orphan containers warning') (https://stackoverflow.com/feeds/question/50947938) (GPP Locator) (site logo) By clicking “Sign up”, you agree to our (https://stackoverflow.com/legal/terms-of-service/public) terms of service and acknowledge you have read our (https://stackoverflow.com/legal/privacy-policy) privacy policy . Sign up with Google Sign up with GitHub OR Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (https://stackoverflow.com/users/login) Log in Skip to main content (https://stackoverflow.com/) (Stack Overflow) (https://stackoverflow.co/) About Products (https://stackoverflow.co/internal/) For Teams Try new site Try BETA (Search…) (Click to show search) (https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f50947938%2fdocker-compose-orphan-containers-warning) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f50947938%2fdocker-compose-orphan-containers-warning) Sign up Let's set up your homepage Select a few topics you're interested in: python javascript c# reactjs java android html flutter c++ node.js typescript css r php angular next.js spring-boot machine-learning sql excel ios azure docker Or search from our full list: (Search) Next You’ll be prompted to create an account to view your personalized homepage. (https://stackoverflow.com/) Home (https://stackoverflow.com/questions) Questions (https://stackoverflow.com/ai-assist) AI Assist (https://stackoverflow.com/tags) Tags (https://stackoverflow.com/beta/challenges) Challenges (https://chat.stackoverflow.com/?tab=explore) Chat (https://stackoverflow.blog/contributed?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=so-blog&utm_content=experiment-articles) Articles (https://stackoverflow.com/users) Users (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies Collectives Communities for your favorite technologies. (https://stackoverflow.com/collectives-all) Explore all Collectives Stack Internal Stack Overflow for Teams is now called Stack Internal . Bring the best of human thought and AI automation together at your work. (https://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Try for free (https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Learn more (https://stackoverflow.com/Content/Sites/stackoverflow/Img/apple-touch-icon.png?v=9168b8ec82a5) (https://stackoverflow.com/questions/50947938/docker-compose-orphan-containers-warning) docker compose orphan containers warning (https://stackoverflow.com/questions/ask) Ask Question (2018-06-20 12:10:16Z) Asked 7 years, 9 months ago Modified (https://stackoverflow.com/questions/50947938/docker-compose-orphan-containers-warning?lastactivity) (2024-12-16 16:59:57Z) 1 year, 3 months ago (Viewed 234,738 times) Viewed 235k times This question shows research effort; it is useful and clear 124 (This question does not show any research effort; it is unclear or not useful) Save this question. (https://stackoverflow.com/posts/50947938/timeline) Show activity on this post. How to be with orphan images when you have 2 independent projects and you want them to work at the same time or at least to build running docker-compose up -d without --remove-orphans flag when images are already built for another project. docker compose file1: version: '2' services: applications: image: tianon/true volumes: - ../../:/var/www/vhosts/project1 nginx: build: ./images/nginx image: project1/nginx:latest ports: - "80:80" volumes_from: - applications networks: appnet: aliases: - project1.app - admin.project1.app php: image: project1/php:latest ports: - "7778:7778" build: context: ./images/php dockerfile: Dockerfile volumes_from: - applications networks: - appnet mysql: image: project1/mysql:latest build: ./images/mysql environment: MYSQL_ROOT_PASSWORD: secret volumes: - mysqldata:/var/lib/mysql networks: - appnet ports: - "33066:3306" workspace: image: project1/workspace:latest build: context: ./images/workspace volumes_from: - applications working_dir: /var/www/vhosts/project1 networks: - appnet networks: appnet: driver: "bridge" volumes: mysqldata: driver: "local" the second docker compose file: version: '2' services: project2_applications: image: tianon/true volumes: - ../../:/var/www/vhosts/project2 project2_nginx: build: ./images/nginx image: project2/nginx:latest ports: - "8080:80" volumes_from: - project2_applications networks: project2_appnet: aliases: - project2.app - admin.project2.app project2_php: image: project2/php:latest ports: - "7777:7777" build: context: ./images/php dockerfile: Dockerfile volumes_from: - project2_applications networks: - project2_appnet project2_mysql: image: project2/mysql:latest build: ./images/mysql environment: MYSQL_ROOT_PASSWORD: secret volumes: - project2_mysqldata:/var/lib/mysql networks: - project2_appnet ports: - "33067:3306" project2_workspace: image: project2/workspace:latest build: context: ./images/workspace volumes_from: - project2_applications working_dir: /var/www/vhosts/videosite networks: - project2_appnet networks: project2_appnet: driver: "bridge" volumes: project2_mysqldata: driver: "local" And now when I have already built project1 and trying to run docker-compose up -d for the second project I see warning: WARNING: Found orphan containers (docker_workspace_1, docker_nginx_1, docker_php_1, docker_mysql_1, docker_memcached_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. I have a supposition that it's because container names for project1 should be more specific and I need to add some prefixes like I'm doing for project2, but project1 is in use by many other developers and I do not want to change it. Is there any way to turn off orphan check? And the second thing: is just a warning message but for some reason, after it appearing compose is failing with error: ERROR: Encountered errors while bringing up the project. And to make it work I need to run docker-compose up -d --remove-orphans (https://stackoverflow.com/questions/tagged/docker) (show questions tagged 'docker') docker (https://stackoverflow.com/questions/tagged/docker-compose) (show questions tagged 'docker-compose') docker-compose (https://stackoverflow.com/questions/tagged/containers) (show questions tagged 'containers') containers (https://stackoverflow.com/questions/tagged/project) (show questions tagged 'project') project (https://stackoverflow.com/q/50947938) (Short permalink to this question) Share (https://stackoverflow.com/posts/50947938/edit) Improve this question Follow Follow this question to receive notifications (https://stackoverflow.com/posts/50947938/revisions) (show all edits to this post) edited (2020-01-10 00:38:29Z) Jan 10, 2020 at 0:38 (https://stackoverflow.com/users/553663/j-scott-elblein) (J. Scott Elblein's user avatar) (https://stackoverflow.com/users/553663/j-scott-elblein) J. Scott Elblein (reputation score) 4,363 (16 gold badges) 16 16 gold badges (66 silver badges) 66 66 silver badges (107 bronze badges) 107 107 bronze badges asked (2018-06-20 12:10:16Z) Jun 20, 2018 at 12:10 (https://stackoverflow.com/users/5065577/bogdan-dubyk) (Bogdan Dubyk's user avatar) (https://stackoverflow.com/users/5065577/bogdan-dubyk) Bogdan Dubyk (reputation score) 5,644 (9 gold badges) 9 9 gold badges (40 silver badges) 40 40 silver badges (90 bronze badges) 90 90 bronze badges 2 I also have this issue with two different users in the system Kostanos – (https://stackoverflow.com/users/2215679/kostanos) (10,572 reputation) Kostanos 2021-08-30 09:45:45 +00:00 Commented (2021-08-30 09:45:45Z, License: CC BY-SA 4.0) Aug 30, 2021 at 9:45 To split two unrelated stacks located in folder named similar, eg. proj1/x_name, proj2/x_name. You can now name them specifically vial top level name: proj_name : (https://docs.docker.com/compose/compose-file/#name-top-level-element) docs.docker.com/compose/compose-file/#name-top-level-element Eugen Konkov – (https://stackoverflow.com/users/4632019/eugen-konkov) (26,190 reputation) Eugen Konkov 2022-10-29 10:40:50 +00:00 Commented (2022-10-29 10:40:50Z, License: CC BY-SA 4.0) Oct 29, 2022 at 10:40 (Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.) Add a comment | (Expand to show all comments on this post) 9 Answers 9 Sorted by: (https://stackoverflow.com/questions/50947938/docker-compose-orphan-containers-warning?answertab=scoredesc#tab-top) Reset to default (scoredesc) Highest score (default) (trending) Trending (recent votes count more) (modifieddesc) Date modified (newest first) (createdasc) Date created (oldest first) This answer is useful 131 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/59173539/timeline) Show activity on this post. Compose uses the project name (which defaults to the basename of the project directory) internally to isolate projects from each other. The project name is used to create unique identifiers for all of the project's containers and other resources. For example, if your project name is myapp and it includes two services db and web , then Compose starts containers named myapp_db_1 and myapp_web_1 respectively. You get the "Found orphan containers" warning because docker-compose detects some containers which belong to another project with the same name . To prevent different projects from interfering with each other (and suppress the warning) you can set a custom project name by using any of the following methods: The (https://docs.docker.com/reference/cli/docker/compose/#use--p-to-specify-a-project-name) -p command line option to docker compose . (https://docs.docker.com/compose/reference/envvars/#compose_project_name) COMPOSE_PROJECT_NAME environment variable . This environment variable can also be set via an (https://docs.docker.com/compose/how-tos/environment-variables/variable-interpolation/#env-file) environment file (.env at the project root directory by default). (https://docs.docker.com/reference/compose-file/version-and-name/#name-top-level-element) Top-level name element in the Compose file. Note: if you pass multiple files to docker-compose via the -f option, then the value from the last file will be used. (https://stackoverflow.com/a/59173539) (Short permalink to this answer) Share (https://stackoverflow.com/posts/59173539/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/59173539/revisions) (show all edits to this post) edited (2024-12-16 16:59:57Z) Dec 16, 2024 at 16:59 answered (2019-12-04 10:10:59Z) Dec 4, 2019 at 10:10 (https://stackoverflow.com/users/244297/eugene-yarmash) (Eugene Yarmash's user avatar) (https://stackoverflow.com/users/244297/eugene-yarmash) Eugene Yarmash (reputation score 152,400) 152k (44 gold badges) 44 44 gold badges (347 silver badges) 347 347 silver badges (393 bronze badges) 393 393 bronze badges Sign up to request clarification or add additional context in comments. 6 Comments Add a comment user188654 user188654 (2020-02-11T13:44:00.487Z) Over a year ago There are times when I really hate Docker documentation for omitting important details like these. I've spent way too much time trying to figure out why docker-compose treats two completely separate YML files as part of the same project and even came to the conclusion myself that it must be tied to the project name. +1 2020-02-11T13:44:00.487Z+00:00 44 Reply (https://stackoverflow.com/users/8489067/emre-tapc%c4%b1) Emre Tapcı (https://stackoverflow.com/users/8489067/emre-tapc%c4%b1) Emre Tapcı (2021-04-30T12:20:00.97Z) Over a year ago My two separate projects are in directories C:\somedir1\docker and C:\somedir2\docker . But I think docker-compose gets as project name just the enclosing folder (docker ), not the whole path. So, setting the project name for docker-compose is mandatory fo rmy case. 2021-04-30T12:20:00.97Z+00:00 7 Reply (https://stackoverflow.com/users/4383275/marko-kraljevic) marko kraljevic (https://stackoverflow.com/users/4383275/marko-kraljevic) marko kraljevic (2022-05-16T08:59:15.707Z) Over a year ago why project name cant be specified in docker-compose.yml itself? 2022-05-16T08:59:15.707Z+00:00 0 Reply (https://stackoverflow.com/users/650049/escape-llc) escape-llc (https://stackoverflow.com/users/650049/escape-llc) escape-llc (2022-07-14T14:58:28.907Z) Over a year ago @markokraljevic since there can be multiple files via -f option, what would it use if they all had a "project" in them? 2022-07-14T14:58:28.907Z+00:00 1 Reply (https://stackoverflow.com/users/4632019/eugen-konkov) Eugen Konkov (https://stackoverflow.com/users/4632019/eugen-konkov) Eugen Konkov (2022-10-29T10:38:34.803Z) Over a year ago @markokraljevic: Now you can: (https://docs.docker.com/compose/compose-file/#name-top-level-element) docs.docker.com/compose/compose-file/#name-top-level-element 2022-10-29T10:38:34.803Z+00:00 1 Reply Add a comment | Show 1 more comment This answer is useful 57 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/52099893/timeline) Show activity on this post. docker-compose takes the name of the directory it is in as the default project name. You can set a different project name by using -p or --project-name . (https://docs.docker.com/compose/reference/#use--p-to-specify-a-project-name) https://docs.docker.com/compose/reference/#use--p-to-specify-a-project-name I had a similar problem because my projects all had the docker/docker-compose.yml structure. (https://stackoverflow.com/a/52099893) (Short permalink to this answer) Share (https://stackoverflow.com/posts/52099893/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/52099893/revisions) (show all edits to this post) edited (2021-08-03 13:24:37Z) Aug 3, 2021 at 13:24 answered (2018-08-30 14:47:27Z) Aug 30, 2018 at 14:47 (https://stackoverflow.com/users/1177918/bob) (bob's user avatar) (https://stackoverflow.com/users/1177918/bob) bob (reputation score) 1,099 (1 gold badge) 1 1 gold badge (10 silver badges) 10 10 silver badges (18 bronze badges) 18 18 bronze badges Comments Add a comment This answer is useful 28 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/63889656/timeline) Show activity on this post. docker-compose up --remove-orphans you can run this command to clean orphan containers. As specified in the warning (https://stackoverflow.com/a/63889656) (Short permalink to this answer) Share (https://stackoverflow.com/posts/63889656/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/63889656/revisions) (show all edits to this post) edited (2022-05-03 12:33:49Z) May 3, 2022 at 12:33 (https://stackoverflow.com/users/5562045/rustymagnet) (rustyMagnet's user avatar) (https://stackoverflow.com/users/5562045/rustymagnet) rustyMagnet (reputation score) 4,295 (3 gold badges) 3 3 gold badges (43 silver badges) 43 43 silver badges (50 bronze badges) 50 50 bronze badges answered (2020-09-14 18:08:47Z) Sep 14, 2020 at 18:08 (https://stackoverflow.com/users/13773883/user) (User's user avatar) (https://stackoverflow.com/users/13773883/user) User (reputation score) 421 (5 silver badges) 5 5 silver badges (6 bronze badges) 6 6 bronze badges 2 Comments Add a comment (https://stackoverflow.com/users/5339684/filip-nikolov) Filip Nikolov (https://stackoverflow.com/users/5339684/filip-nikolov) Filip Nikolov (2020-09-14T19:46:29.84Z) Over a year ago The question asked is how to do it without --remove-orphans 2020-09-14T19:46:29.84Z+00:00 12 Reply (https://stackoverflow.com/users/903966/antonofthewoods) AntonOfTheWoods (https://stackoverflow.com/users/903966/antonofthewoods) AntonOfTheWoods (2022-06-05T11:08:15.39Z) Over a year ago (Edited 1 time) @FilipNikolov but lots of us get here from Google looking how to actually remove the orphans. Though I get the warning on the run command, not on the up command. 2022-06-05T11:08:15.39Z+00:00 5 Reply This answer is useful 23 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/63539983/timeline) Show activity on this post. To build on other answers, I create a .env file with my docker compose projects. I have a number of projects that all use the docker directory but are different projects. To use docker-compose -p is a bit error prone, so creating .env file in the same directory as the docker-compose.yml : -rw-rw-r-- 1 auser auser 1692 Aug 22 20:34 docker-compose.yml -rw-rw-r-- 1 auser auser 31 Aug 22 20:44 .env alleviates the necessary overhead of remembering -p . In the .env file, I can now set the COMPOSE_PROJECT_NAME variable: COMPOSE_PROJECT_NAME=myproject On running: docker-compose up -d the COMPOSE_PROJECT_NAME is substituted without the use of -p . Reference: (https://docs.docker.com/compose/env-file/) https://docs.docker.com/compose/env-file/ (https://stackoverflow.com/a/63539983) (Short permalink to this answer) Share (https://stackoverflow.com/posts/63539983/edit) Improve this answer Follow Follow this answer to receive notifications answered (2020-08-22 18:55:04Z) Aug 22, 2020 at 18:55 (https://stackoverflow.com/users/626201/user626201) (user626201's user avatar) (https://stackoverflow.com/users/626201/user626201) user626201 (reputation score) 1,712 (3 gold badges) 3 3 gold badges (24 silver badges) 24 24 silver badges (42 bronze badges) 42 42 bronze badges Comments Add a comment This answer is useful 18 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/65509735/timeline) Show activity on this post. If the orphaned containers are expected and not intended to remove, you can set COMPOSE_IGNORE_ORPHANS variable to true. Consise but just right away working source is (https://github.com/docker/compose/issues/3573#issuecomment-451281243) here . One option is to put it as a line into .env file next to docker-compose.yml like this: COMPOSE_IGNORE_ORPHANS=True Another option is pass or set it as an environment variable. sh: COMPOSE_IGNORE_ORPHANS=True docker-compose up -d or export COMPOSE_IGNORE_ORPHANS=True docker-compose up -d cmd: SET COMPOSE_IGNORE_ORPHANS=True&& docker-compose up -d powershell: $env:COMPOSE_IGNORE_ORPHANS = 'True'; & docker-compose up -d (https://stackoverflow.com/a/65509735) (Short permalink to this answer) Share (https://stackoverflow.com/posts/65509735/edit) Improve this answer Follow Follow this answer to receive notifications answered (2020-12-30 15:53:16Z) Dec 30, 2020 at 15:53 (https://stackoverflow.com/users/1183633/moudrick) (moudrick's user avatar) (https://stackoverflow.com/users/1183633/moudrick) moudrick (reputation score) 2,366 (1 gold badge) 1 1 gold badge (25 silver badges) 25 25 silver badges (34 bronze badges) 34 34 bronze badges Comments Add a comment This answer is useful 5 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/73503774/timeline) Show activity on this post. TL;DR You can also add a unique name: myproject to each of your compose files. My journey In case this helps anybody else scrounging around to find help for the above issue (This is in support of the already good comments here): I have several config files in the same directory redis.yml mariadb.yml ... and I kept getting the same error about orphan containers when I ran docker-compose -f .yml up as of now you can simply put each yml file into a separate project. This is simply done using the command like parameter "-p my_project_name" as has already been mentioned before. BUT the name must be in all lowercase! This got me a little closer but I also kept forgetting that to bring the docker container down using docker-compose I needed to include that parameter as well. For example to start the container: docker-compose -p myproject-d redis.yml up -d and to destroy the container docker-compose -p myproject-d redis.yml down Today I found that I can simply add the name: bit into the yml config. Here is an example for redis: version: '3.9' name: redis services: redis_0: ... Now I can simply start the container with the following and don't have to worry about project names again: docker-compose -f redis.yml (https://stackoverflow.com/a/73503774) (Short permalink to this answer) Share (https://stackoverflow.com/posts/73503774/edit) Improve this answer Follow Follow this answer to receive notifications (https://stackoverflow.com/posts/73503774/revisions) (show all edits to this post) edited (2022-08-26 16:13:05Z) Aug 26, 2022 at 16:13 answered (2022-08-26 16:05:51Z) Aug 26, 2022 at 16:05 (https://stackoverflow.com/users/2462719/acidhawk) (AcidHawk's user avatar) (https://stackoverflow.com/users/2462719/acidhawk) AcidHawk (reputation score) 566 (1 gold badge) 1 1 gold badge (9 silver badges) 9 9 silver badges (22 bronze badges) 22 22 bronze badges Comments Add a comment This answer is useful 5 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/75662446/timeline) Show activity on this post. This works for me and with it -d so that it runs in the background:docker-compose up -d --remove-orphans (https://stackoverflow.com/a/75662446) (Short permalink to this answer) Share (https://stackoverflow.com/posts/75662446/edit) Improve this answer Follow Follow this answer to receive notifications answered (2023-03-07 13:14:34Z) Mar 7, 2023 at 13:14 (https://stackoverflow.com/users/7762891/shades3002) (shades3002's user avatar) (https://stackoverflow.com/users/7762891/shades3002) shades3002 (reputation score) 1,051 (13 silver badges) 13 13 silver badges (12 bronze badges) 12 12 bronze badges Comments Add a comment This answer is useful 1 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/73494892/timeline) Show activity on this post. As a complement for the existing answers, if you're using docker-compose with the -f option , to my surprise docker-compose will use the name of the parent folder of the first file passed via -f as the project name. For example, assuming the following folder structure: / └── Users/ └── papb/ ├── a.yml └── foo/ └── b.yml If you're in /Users and run docker-compose -f papb/a.yml -f papb/foo/b.yml : The project name will be inferred as papb Any relative paths you have in both files will be resolved against /Users/papb If you're in /Users and run docker-compose -f papb/foo/b.yml -f papb/a.yml : The project name will be inferred as foo Any relative paths you have in both files will be resolved against /Users/papb/foo If you're in /Users/papb and run docker-compose -f foo/b.yml -f a.yml : The project name will be inferred as foo Any relative paths you have in both files will be resolved against /Users/papb/foo (https://stackoverflow.com/a/73494892) (Short permalink to this answer) Share (https://stackoverflow.com/posts/73494892/edit) Improve this answer Follow Follow this answer to receive notifications answered (2022-08-26 00:27:23Z) Aug 26, 2022 at 0:27 (https://stackoverflow.com/users/4135063/pedro-a) (Pedro A's user avatar) (https://stackoverflow.com/users/4135063/pedro-a) Pedro A (reputation score) 4,363 (7 gold badges) 7 7 gold badges (36 silver badges) 36 36 silver badges (66 bronze badges) 66 66 bronze badges Comments Add a comment This answer is useful 0 (This answer is not useful) Save this answer. (Loading when this answer was accepted…) (https://stackoverflow.com/posts/70754064/timeline) Show activity on this post. This happens when your docker-compose file has got updated. I received similar error on Docker startup and found out that another team member updated the docker-compose.yml as part of cleanup. To fix this, I deleted the docker group using the Delete button in Docker Desktop and started it again. This fixed the error for me.(https://i.sstatic.net/ipgFG.png) (enter image description here) (https://stackoverflow.com/a/70754064) (Short permalink to this answer) Share (https://stackoverflow.com/posts/70754064/edit) Improve this answer Follow Follow this answer to receive notifications answered (2022-01-18 10:31:56Z) Jan 18, 2022 at 10:31 (https://stackoverflow.com/users/6805332/ghan) (Ghan's user avatar) (https://stackoverflow.com/users/6805332/ghan) Ghan (reputation score) 351 (2 silver badges) 2 2 silver badges (15 bronze badges) 15 15 bronze badges Comments Add a comment Your Answer Draft saved Draft discarded Sign up or (https://stackoverflow.com/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f50947938%2fdocker-compose-orphan-containers-warning%23new-answer) log in Sign up using Google Sign up using Email and Password Submit Post as a guest Name Email Required, but never shown Post as a guest Name () () Email Required, but never shown () () Post Your Answer Discard By clicking “Post Your Answer”, you agree to our (https://stackoverflow.com/legal/terms-of-service/public) terms of service and acknowledge you have read our (https://stackoverflow.com/legal/privacy-policy) privacy policy . Start asking to get answers Find the answer to your question by asking. (https://stackoverflow.com/questions/ask) Ask question Explore related questions (https://stackoverflow.com/questions/tagged/docker) (show questions tagged 'docker') docker (https://stackoverflow.com/questions/tagged/docker-compose) (show questions tagged 'docker-compose') docker-compose (https://stackoverflow.com/questions/tagged/containers) (show questions tagged 'containers') containers (https://stackoverflow.com/questions/tagged/project) (show questions tagged 'project') project See similar questions with these tags. The Overflow Blog (https://stackoverflow.blog/2026/04/07/he-designed-c-to-solve-your-code-problems/?cb=1) He designed C++ to solve your code problems Featured on Meta (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/438628/retiring-the-beta-site?cb=1) Retiring the beta site (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned?cb=1) Policy: Generative AI (e.g., ChatGPT) is banned Linked (https://stackoverflow.com/questions/77034460/separate-docker-compose-projects-are-interfering-with-one-another?lq=1) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/77034460/separate-docker-compose-projects-are-interfering-with-one-another?noredirect=1&lq=1) Separate Docker-compose projects are interfering with one another (https://stackoverflow.com/questions/72317446/docker-desktop-leaks-docker-compose-cli?lq=1) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/72317446/docker-desktop-leaks-docker-compose-cli?noredirect=1&lq=1) Docker Desktop leaks docker-compose CLI Related (https://stackoverflow.com/questions/36087173/containers-are-not-linked-with-docker-compose-version-2?rq=3) (Question score (upvotes - downvotes)) 12 (https://stackoverflow.com/questions/36087173/containers-are-not-linked-with-docker-compose-version-2?rq=3) Containers are not linked with docker-compose version 2 (https://stackoverflow.com/questions/39093556/docker-compose-up-encountered-errors-while-bringing-up-the-project?rq=3) (Question score (upvotes - downvotes)) 10 (https://stackoverflow.com/questions/39093556/docker-compose-up-encountered-errors-while-bringing-up-the-project?rq=3) docker-compose up : Encountered errors while bringing up the project (https://stackoverflow.com/questions/41019440/docker-compose-version-2-recreates-container-when-it-should-not?rq=3) (Question score (upvotes - downvotes)) 2 (https://stackoverflow.com/questions/41019440/docker-compose-version-2-recreates-container-when-it-should-not?rq=3) docker compose version 2 recreates container when it should not (https://stackoverflow.com/questions/41494612/docker-compose-orphan-containers-when-overriding-services?rq=3) (Question score (upvotes - downvotes)) 15 (https://stackoverflow.com/questions/41494612/docker-compose-orphan-containers-when-overriding-services?rq=3) Docker compose orphan containers when overriding services (https://stackoverflow.com/questions/41871950/deploying-docker-compose-containers?rq=3) (Question score (upvotes - downvotes)) 9 (https://stackoverflow.com/questions/41871950/deploying-docker-compose-containers?rq=3) Deploying docker-compose containers (https://stackoverflow.com/questions/48777109/docker-compose-containers-uses-wrong-container-with-multiple-projects?rq=3) (Question score (upvotes - downvotes)) 10 (https://stackoverflow.com/questions/48777109/docker-compose-containers-uses-wrong-container-with-multiple-projects?rq=3) docker-compose containers uses wrong container with multiple projects (https://stackoverflow.com/questions/53171334/docker-compose-up-not-recreate-container?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/53171334/docker-compose-up-not-recreate-container?rq=3) docker-compose up not recreate container (https://stackoverflow.com/questions/64206533/docker-compose-exceptions?rq=3) (Question score (upvotes - downvotes)) 11 (https://stackoverflow.com/questions/64206533/docker-compose-exceptions?rq=3) Docker-compose exceptions (https://stackoverflow.com/questions/71827416/docker-compose-removes-sibling-container?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/71827416/docker-compose-removes-sibling-container?rq=3) docker-compose removes sibling container (https://stackoverflow.com/questions/73092819/docker-compose-expected-container-is-up-to-date?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/73092819/docker-compose-expected-container-is-up-to-date?rq=3) Docker-compose expected container is up to date (https://stackexchange.com/questions?tab=hot) Hot Network Questions (Puzzling Stack Exchange) (https://puzzling.stackexchange.com/questions/137596/turn-a-shark-egg-case-into-a-tetrahedron) Turn a shark egg case into a tetrahedron (Space Exploration Stack Exchange) (https://space.stackexchange.com/questions/70419/how-is-the-solar-eclipse-experienced-by-the-artemis-ii-crew-unique-compared-to-w) How is the solar eclipse experienced by the Artemis II crew unique compared to what Apollo crews experienced? (Ask Different) (https://apple.stackexchange.com/questions/486178/what-is-a-reliable-way-to-get-last-shutdown-time-via-shell-script-in-macos-tah) What is a reliable way to get "last shutdown" time via shell script in macOS Tahoe 26.4? (Arqade) (https://gaming.stackexchange.com/questions/418357/what-do-the-hovering-green-red-buttons-do) What do the hovering green/red buttons do? (Philosophy Stack Exchange) (https://philosophy.stackexchange.com/questions/137587/under-reductionist-physicalism-how-would-you-approach-and-distinguish-between-t) Under reductionist physicalism, how would you approach and distinguish between these examples of the representing/encoding of information/knowledge? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/5131809/circles-tangent-to-a-parabola-and-two-adjacent-circles) Circles Tangent to a Parabola and Two Adjacent Circles (MathOverflow) (https://mathoverflow.net/questions/509951/how-stable-is-the-difference-between-smooth-and-piecewise-linear) How stable is the difference between smooth and piecewise linear? (MathOverflow) (https://mathoverflow.net/questions/509953/natural-numbers-as-sums-of-powers-of-distinct-numbers-2) Natural numbers as sums of powers of distinct numbers #2 (Puzzling Stack Exchange) (https://puzzling.stackexchange.com/questions/137598/which-country-has-the-hottest-flag) Which country has the 'HOTTEST' flag? (Space Exploration Stack Exchange) (https://space.stackexchange.com/questions/70414/will-the-artemis-ii-crew-beat-the-earth-centric-altitude-record-of-soviet-turtle) Will the Artemis II crew beat the Earth-centric altitude record of Soviet turtles? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/5131829/function-approximation-based-on-a-list-of-points) Function approximation based on a list of points. (Software Engineering Stack Exchange) (https://softwareengineering.stackexchange.com/questions/461068/how-does-everything-is-a-file-not-contradict-do-one-thing-and-do-it-well) How does 'everything is a file' not contradict 'do one thing and do it well'? (Chemistry Stack Exchange) (https://chemistry.stackexchange.com/questions/195337/what-is-the-solubility-of-na2so3-in-methanol) What is the Solubility of Na2SO3 in Methanol (Blender Stack Exchange) (https://blender.stackexchange.com/questions/346100/hide-only-unused-sockets-keep-non-default-values-visible-in-geometry-nodes) Hide only unused sockets (keep non-default values visible) in Geometry Nodes? (Philosophy Stack Exchange) (https://philosophy.stackexchange.com/questions/137582/what-are-arguments-available-to-support-the-conclusion-that-with-absence-of-supe) What are arguments available to support the conclusion that with absence of supernatural God , we cannot trust our senses, perception &mind? (Arqade) (https://gaming.stackexchange.com/questions/418354/which-airport-is-this) Which airport is this? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/5131757/non-trivial-examples-of-inconsistent-theories) Non-trivial examples of inconsistent theories (Unix & Linux Stack Exchange) (https://unix.stackexchange.com/questions/805343/installing-hoptodesk-on-debian-13-trixie-or-lmde-7-gigi-error-var-lib-dpkg) Installing HopToDesk on Debian 13 (trixie) or LMDE 7 (gigi) error /var/lib/dpkg/info/hoptodesk.postinst: No such file or directory (Hinduism Stack Exchange) (https://hinduism.stackexchange.com/questions/69820/what-does-ayurveda-tell-us-about-drinking-water) What does Ayurveda tell us about drinking water? (Skeptics Stack Exchange) (https://skeptics.stackexchange.com/questions/60527/did-a-chatbot-spontaneously-post-a-negative-blog-post-against-its-treatment-by-w) Did a chatbot spontaneously post a negative blog post against its treatment by Wikipedia? (Law Stack Exchange) (https://law.stackexchange.com/questions/114537/is-the-timestamp-of-dash-cam-videos-that-important) Is the timestamp of dash cam videos that important? (Mathematica Stack Exchange) (https://mathematica.stackexchange.com/questions/319155/fast-easy-way-to-decompose-a-block-matrix) Fast/Easy way to decompose a block matrix? (Proof Assistants Stack Exchange) (https://proofassistants.stackexchange.com/questions/6519/is-there-any-notion-of-iterable-native-tarski-universe-in-rocq) Is there any notion of iterable (native, Tarski...) universe in Rocq? (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/303964/what-was-the-first-work-to-show-a-replacement-santa-giving-children-whatever-the) What was the first work to show a replacement Santa giving children whatever they asked for? (https://stackoverflow.com/feeds/question/50947938) (Feed of this question and its answers) Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. (https://stackoverflow.com/feeds/question/50947938) () lang-yaml Why are you flagging this comment? (45) Probable spam. This comment promotes a product, service or website while (https://stackoverflow.com/help/promotion) failing to disclose the author's affiliation . (20) Unfriendly or contains harassment/bigotry/abuse. This comment is unkind, insulting or attacks another person or group. Learn more in our (https://stackoverflow.com/conduct/abusive-behavior) Abusive behavior policy . (39) Not needed. This comment is not relevant to the post. (19) Something else. A problem not listed above. Try to be as specific as possible. Flag comment Cancel You have 0 flags left today (Illustration of upvote icon after it is clicked) Hang on, you can't upvote just yet. You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. (https://stackoverflow.com/help/whats-reputation) What's reputation and how do I get it? Instead, you can save this post to reference later. Save this post for later Not now (https://stackoverflow.com/) (https://stackoverflow.com/) Stack Overflow (https://stackoverflow.com/questions) Questions (https://stackoverflow.com/help) Help (https://chat.stackoverflow.com/?tab=explore) Chat (https://stackoverflow.co/) Business (https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) Stack Internal (https://stackoverflow.co/data-licensing/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=data-licensing) Stack Data Licensing (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) Stack Ads (https://stackoverflow.co/) Company (https://stackoverflow.co/) About (https://stackoverflow.co/company/press/) Press (https://stackoverflow.co/company/work-here/) Work Here (https://stackoverflow.com/legal) Legal (https://stackoverflow.com/legal/privacy-policy) Privacy Policy (https://stackoverflow.com/legal/terms-of-service/public) Terms of Service (https://stackoverflow.com/contact) Contact Us Your Privacy Choices (https://policies.stackoverflow.co/stack-overflow/cookie-policy) Cookie Policy (https://stackexchange.com/) Stack Exchange Network (https://stackexchange.com/sites#technology) Technology (https://stackexchange.com/sites#culturerecreation) Culture & recreation (https://stackexchange.com/sites#lifearts) Life & arts (https://stackexchange.com/sites#science) Science (https://stackexchange.com/sites#professional) Professional (https://stackexchange.com/sites#business) Business (https://api.stackexchange.com/) API (https://data.stackexchange.com/) Data (https://stackoverflow.blog/?blb=1) Blog (https://www.facebook.com/officialstackoverflow/) Facebook (https://twitter.com/stackoverflow) Twitter (https://linkedin.com/company/stack-overflow) LinkedIn (https://www.instagram.com/thestackoverflow) Instagram Site design / logo © 2026 Stack Exchange Inc; user contributions licensed under (https://stackoverflow.com/help/licensing) CC BY-SA . rev 148c8cadac3c5d598514367ee8e2b5923e639b80 By continuing to use this website, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our (https://policies.stackoverflow.co/stack-overflow/cookie-policy/) Cookie Policy . By exiting this window, default cookies will be accepted. To reject cookies, select an option from below. Necessary cookies only Customize settings