-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Network connect multihost env | invalid container <nil> : #1402
Comments
I am having the same problem |
I can reproduce this problem with docker-machine. The issue is the network
|
@dongluochen Thank you for the hint.
Connection established here.
I have this problem in rather random order. |
Could the problem be we create overlay networks by default? If the engines are not properly set up to handle overlay networking (which docker-machine doesn't do), then I don't think it will work out of the box. @vieux ? |
What do you mean exactly, setting up the kv-store? My test was running the commands manually btw. |
I am running into the same problem and it does not go away. I am trying to achieve the following networks:
First I create the overlay networks:
Then I create the containers in the swarm cluster:
It looks like this:
And then as a last step I am trying to attach $ docker network connect frontend-backend be-lb
Error response from daemon: invalid container <nil> : nosuchcontainer: no such id: be-lb
$ docker network connect frontend-backend mhs-demo1/be-lb
Error response from daemon: invalid container <nil> : nosuchcontainer: no such id: mhs-demo1/be-lb
$ docker network connect frontend-backend 306fd2450781
Error response from daemon: invalid container <nil> : nosuchcontainer: no such id: 306fd2450781 FWIW:
|
@ahmetalpbalkan This is fixed in |
Fixed by #1438 |
If i try to connect an container to an network it's works only on the same host as the master is. When i connect to an other host direct to docker i can connect the container to the network and everything works as excepted.
Steps to reproduce:
Inspecting the Network delivers only for the current host the connected containers.
All machines was installed by docker-machine.
System informations:
docker info
docker version
docker-machine -v
The problem also appear when connecting containers via rest api. Only the container on the host with the swarm-master could connect.
The text was updated successfully, but these errors were encountered: