1 DL3049
Moritz Röhrich edited this page 2021-03-23 12:17:41 +01:00

Label <label> is missing

This rule is only activated, when specifying a label-schema. The examples used on this wiki page presume the label-schema is:

label-schema:
  version: text

or specified via command line:

$ hadolint --require-label version

Problematic code example:

FROM busybox

Correct code example:

FROM busybox
LABEL version="1.0.1"

Rationale:

When a label-schema is specified, all labels within that schema must be present.