Docker Community Forums

Share and learn in the Docker community.

Docker max limit on number and size of labels

In my webapp, I’m trying to display the docker image metadata.

One such metadata is Dockerfile labels. Generally, metadata such as author, maintainers or organizations are represented using labels.

LABEL author="John Doe" \
      organization="Jane Doe" \
      maintainer="Jack Doe"

Questions:

  1. Is there a limit on the number of Label Key-value pairs?
  2. Is there a size/character limit for the Key or Value?

I tried going through the documentation but couldn’t find any exact details. Thanks in advance for your help.

NOTE: I’ve also posted this question on StackOverflow. Awaiting responses from the Docker & SO community.