8000 DL3049 · hadolint/hadolint Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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
0