Skip to content
Discussion options

You must be logged in to vote

Docker won't let you apply the same label twice without overriding the previous value:

The key=value must be unique to avoid overwriting the label value. If you specify labels with identical keys but different values, each subsequent value overwrites the previous. Docker uses the last key=value you supply.

I do like the possible feature though, but I'm not sure about how to implement it. Firstly, I'll have to play the same old record again: starting to split the values on commas would make sense, but is a breaking change, so that's not what to do.

How it could be done:

  • come up with a good new label name whose value is being split on commas automatically
  • keep the old behavior for the ol…

Replies: 1 comment 1 reply

Comment options

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

m90 Aug 15, 2025
Maintainer

Answer selected by huyz
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