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
1.13rc1: Cannot create containers with overlay network in docker swarm mode #28446
Comments
When you create the swarm network, you need to specify |
But even if I do that the overlay network is not visible from non-manager nodes, but I suppose this is another issue. |
@gprivitera This is by design. That network will not be visible in worker nodes until you run the first container which attaches to that network. |
It is not visible even after I attached the first container. |
|
Is the container running on that node |
Nope, it's running on instance-n1.
|
I am not sure if you were running overlay networks the old way or if you formed a new swarm cluster with new state, there seems to exist a stale vxlan interface with that vxlan id. What kernel version are you on in that node? |
I just created both those instances just for this experiment. |
@gprivitera you need to create the network with the
The |
Can you post |
@mrjana instance-n1 is manager
|
@gprivitera have you tried with the |
I did not the first time, then I deleted the network and recreated using the same name with the |
Recreated the cluster from scratch..
|
Good to hear it works!
That looks like a bug @mrjana ^^ |
This should be fixed by moby/libnetwork#1545 |
I'm going to close the issue since you guys already identified a bug (and it is not the one the issue started with, which was not a bug). |
I have a problem that I can't make connexion between two containers located in the same overlay network "mysql container" and "glpi container" #docker service create --name my_mysql_server -p 3306:3306 --network afwa --replicas 2 -e MYSQL_ROOT_PASSWORD=root herreraluis/mysql-ubuntu #docker service create -p 268:80 --name glpi_server --network afwa --replicas 2 -e MYSQL_ROOT_PASSWORD=root herreraluis/docker-glpi root@ubuntu:/home/afwa# docker network ls |
I believe most scenarios using docker swarm would like the nodes specified in the same network to work with each other. Therefore I hope the docker development team could set the 'attachable' attribute's default value to true. I and my colleagues really suffered a lot until we find this issue |
Description
Cannot create a docker container using
docker run --net=some-net
wheresome-net
is a overlay network created in docker swarm mode.Steps to reproduce the issue:
docker swarm init
docker network create --driver=overlay some-net"
docker run --net=some-net -d any/image
Describe the results you received:
docker: Error response from daemon: Could not attach to network qiot-dev: rpc error: code = 7 desc = network some-net not manually attachable.
Describe the results you expected:
I did expect the container to start normally and be able to reach it from services and/or other containers attached to the overlay network.
#23901
#25962
Additional information you deem important (e.g. issue happens only occasionally):
Always reproducible.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Using AWS.
The text was updated successfully, but these errors were encountered: