dockerfile_lint icon indicating copy to clipboard operation
dockerfile_lint copied to clipboard

Document enhanced LABEL/ENV/ARG support

Open lphiri opened this issue 9 years ago • 2 comments

Provide detailed documentation on how to write rules for checking LABEL/ENV/ARG name/values

lphiri avatar Feb 24 '16 03:02 lphiri

Just on LABEL layer for image. https://docs.docker.com/engine/reference/builder/#label

caduvieira avatar Jul 28 '16 11:07 caduvieira

That only seems to work with this format

LABEL multi.label1="value1"
LABEL multi.label2="value2"
LABEL other="value3"

and not with either of these formats

LABEL multi.label1="value1" \
    multi.label2="value2" \
    other="value3"

LABEL multi.label1="value1" multi.label2="value2" other="value3"

My issue here is that first one (the one that works) produces a new layer for each label.

cassiussa avatar Jul 09 '18 19:07 cassiussa