Skip to content

Docker Swarm and docker compose extra "" comillas #2045

@devMls

Description

@devMls

Describe the bug

when I deploy a stack with portainer I use

labels:
    com.docker.scope: "WATCHTOWER_MONITORED"

And the cointainers take the label.

In the stack of watchtower I have

  - WATCHTOWER_SCOPE=WATCHTOWER_MONITORED      # Solo monitorea contenedores con este scope

and in the log I see:

time="2024-10-26T09:54:47Z" level=info msg="Only checking containers in scope "WATCHTOWER_MONITORED""
time="2024-10-26T10:00:15Z" level=info msg="Session done" Failed=0 Scanned=0 Updated=0 notify=no

I have try with different combiinations changing label with comillas with slash.... but nothing work.

any idea?

bonus mi cron config is:

  - WATCHTOWER_SCHEDULE=*/5 * * * *  # Se ejecuta cada 5 minutos

google insists that this is 5 mins but logs write session each 5 seconds.

Steps to reproduce

deploy in docker swarm with portainer and introduce the config like description

Expected behavior

detects the containter

Screenshots

No response

Environment

docker swarm
portainer
1 node

Your logs

time="2024-10-26T09:54:47Z" level=info msg="Watchtower 1.7.1"
time="2024-10-26T09:54:47Z" level=info msg="Using no notifications"
time="2024-10-26T09:54:47Z" level=info msg="Only checking containers in scope \"WATCHTOWER_MONITORED\""
time="2024-10-26T09:54:47Z" level=info msg="Scheduling first run: 2024-10-26 09:54:50 +0000 UTC"
time="2024-10-26T09:54:47Z" level=info msg="Note that the first check will be performed in 2 seconds"
time="2024-10-26T09:54:50Z" level=info msg="Session done" Failed=0 Scanned=0 Updated=0 notify=no

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions