-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
The container name "/postgres" is already in use by container "*" #2849
Comments
When you remove the container name definition for the docker-compose services, the current folders name is used as prefix for the container name. My preferred way would be to remove the container_name definitions from the docker-compose files and add the |
Hi I develop multiple django projects on my dev machine. Adding specific names to the containers creates conflict between multiple django projects. The older method of not specifying any container_name worked quite well. Is there any specific reason we adopted the 'container_name' param? Is it possible to go back to not specifying container names atleast in local.yml? |
This was added in #2545 and the PR explains the rationale. However, the problems described in this issue are more important than the problem it's solving, in my opinion. As I said in the original PR, All things considered, I agree with the suggestion to remove |
I noticed that it seems that container names are set properly in the This would seem to be a reasonable 'fix' in my opinion. |
On further inspection, this already seems implemented in |
You are correct, it seems I mixed up those fields. It is indeed not implemented. |
thought is was an easy fix but it breaks postgres |
What happened?
When I tried to create and run a new project with docker-compose I got these errors:
What should've happened instead?
Should run the new project without any problem. When I renamed the containers they worked. We could add the project slug name to
container_name
.Additional details
I created a new project with docker support, then:
Finally:
The text was updated successfully, but these errors were encountered: