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

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.

Clone this wiki locally