DOCKER Course

LABEL

Go back

Set the image properties that are shown when using the command docker image inspect image_name_here. The syntax is

LABEL "property"="value"

with

  • property: a property, see examples
  • value: a value

Examples

LABEL name="image name"
LABEL version="image version"
LABEL maintainer="maintener"
LABEL vendor="vendor"
LABEL environment=dev
LABEL description="image description"