Skip to content

unknown flag: --label #837

Answered by piksel
R8s6 asked this question in Q&A
Feb 26, 2021 · 4 comments · 1 reply
Discussion options

You must be logged in to vote

The --label argument is for the docker CLI, but the --label-enable is for watchtower itself. Since they are both passed after the container name, they will be passed to the exuctable inside the container (watchtower).
But even if you moved the --label= argument to before continrrr/watchtower, it probably won't do what you expect, as that label needs to be put on the containers that you want to be automatically updated, on THEIR docker run commands.
You are also specifying nginx as an argument, which would only target the container with the name nginx. Perhaps you can explain what you are trying to achieve?

Either start the nginx container with the label set to false (--label=com.centuryli…

Replies: 4 comments 1 reply

This comment has been hidden.

Comment options

You must be logged in to vote
0 replies
Answer selected by piksel
Comment options

You must be logged in to vote
1 reply
@piksel
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #833 on February 27, 2021 08:34.