Open kazkame opened 4 months ago
Nm I am using Portainer and I think Portainer deploying is not supported.
Why would Portainer be a problem to deploy? I'm facing the same errors. It can't "get" itself:
18:13:45.425 WARN whats-up-docker/watcher.docker.local: Cannot get a reliable tag for this image [getwud/wud:latest@sha256:1bb63fc4940b047dc697f0629fa8cbfd4242f4a05c8fab11e7df931a0e62eb26]
Deploying with Portainer too but it finds 5 of 38 containers running in the swarm. Maybe it is the swarm mode the problem?
Swarm mode is not currently supported; that's probably the cause of your issue.
@fmartinou when you do expect support for swarm?
Swarm and WUD are working fine for me. Somewhat insecure design as you have to enable docker TCP access...but it is internal to my LAN. I just deal with it.
Essentially, you have to add each node as a watcher. Reference each node in your WUD env vars:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WUD_WATCHER_node01_HOST=node01.hostname
- WUD_WATCHER_node01_PORT=2375
- WUD_WATCHER_node02_HOST=node02.hostname
- WUD_WATCHER_node02_PORT=2375
- WUD_WATCHER_node03_HOST=node03.hostname
- WUD_WATCHER_node03_PORT=2375
Then you just need to move your labels from the service to the container:
labels:
- 'wud.tag.include=^\d+\.\d+\.\d+$$'
- 'wud.link.template=https://github.com/getwud/wud/releases/tag/$${major}.$${minor}.$${patch}'
deploy:
mode: replicated
replicas: 1
resources:
limits:
memory: 512M
reservations:
cpus: '0.5'
memory: 128M
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"
- "traefik.http.routers.wud.rule=Host(`wud.hostname`)"
- "traefik.http.routers.wud.entrypoints=websecure"
- "traefik.http.services.wud.loadbalancer.server.port=3000"
My idents probably aren't perfect, but that should get you closer to a working config.
using docker swarm, my wud instance does not detect any of my containers. The web pannel loads correctly. It just says: "no containers found" When I look at the logs I have:
13:47:10.097 WARN whats-up-docker/watcher.docker.local: Cannot get a reliable tag for this image [fmartinou/whats-up-docker:6.4.1@sha256:1c00b6e8ae4b24dxxx387a1a84dd47c7aeb4371dxxxec673cdbb64ed16a463xxxxxe4ffe688]
And it shows that warning for all of my containers.
Here is my compose: