1 DL3052
Moritz Röhrich edited this page 2021-03-23 12:35:49 +01:00

Label <label> is not a valid URL.

This rule is activated by specifying a label-schema, where one label must contain a URL:

label-schema:
  website: url

or via command line:

$ hadolint --require-label website:url Dockerfile

Problematic code:

LABEL website="not a url"

Correct code:

LABEL website="https://www.example.com"

Rationale:

A label-schema may require a label to contain some URL, for example to ensure compliance to standardized specifications.

Note:

This rule does not expand variables. It requires the value of the label to be a literal URL.