-
Notifications
You must be signed in to change notification settings - Fork 428
DL3052
Moritz Röhrich edited this page Mar 23, 2021
·
1 revision
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
LABEL website="not a url"
LABEL website="https://www.example.com"
A label-schema may require a label to contain some URL, for example to ensure compliance to standardized specifications.
This rule does not expand variables. It requires the value of the label to be a literal URL.