Skip to content
Moritz Röhrich edited this page Mar 23, 2021 · 1 revision

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.

Clone this wiki locally