2 Dockers in one VPC

I am trying to hide the environment of my dev and qa in the same vpc. I created separate overlay networks with the name:

  • OK
  • Dev

My dev env runs smoothly. I also use the same container names for qa env.

When I try to register my swarm container, it complains about this:

docker: Error response from daemon: Conflict: The name mongo2 is already assigned. You have to delete (or rename) that container to be able to assign mongo2 to a container again.. 

What should I do in this case.

Note: docker0 has the same subnet mask in both environments on which the router is running.

+5
source share

All Articles