Open aroundthecode opened 7 years ago
I'm also seeing the same thing. Docker 17.06.1-ce
Yes, the same for me. 17.05.0-ce
This happens when services are running that are not attached to any swarm network. As a workaround, you can just make sure that every service uses at least one network, but ideally it should be able to handle that situation.
Hi, you can use this stack.yml file. It's work for my swarm cluster.
version: "3.2"
services:
dashboard:
image: charypar/swarm-dashboard
privileged: true
volumes:
- type: bind
source: "/var/run/docker.sock"
target: "/var/run/docker.sock"
ports:
- 8080:8080
environment:
PORT: 8080
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
This also happens if you use dnsrr instead of vip.
As @stevenklar mentioned, this also happens when using endpoint_mode: dnsrr
. Not sure why we don't get any virtual IP's when we inspect (I still use a network, so I should get one, right?), but maybe we shouldn't crash if we don't have one. Sure, we can't show the network connection in the dashboard, but I guess it's better than crashing?
I've run the service in my local swarm (docker 4 Mac) and it works perfectly
But when I deploy the same on my online swarm cluster
the dashboard only shows me the error:
Since they run the same API version (both > 1.29) I'm quite puzzled, can you provide any hint ? thanks in advance