-
Notifications
You must be signed in to change notification settings - Fork 480
DL3050
Moritz Röhrich edited this page Mar 23, 2021
·
1 revision
This rule is only activated when linting with the strict-labels option. This can be specified via config file
strict-labels: trueor via command line:
$ hadolint --strict-labels DockerfileNote, that when no label-schema is specified, all labels are considered superfluous by this rule.
FROM busybox
LABEL superfluous="this should not be here"FROM busyboxIn certain situations, it may be desirable to ensure no labels other than those specified in the label-schema are present. This may be required to avoid information leakage, to not confuse label parsers or to ensure compliance to standards.