Slide 37
Slide 37 text
Checking best practices with Hadolint
$ Get-Content .\Dockerfile | docker run --rm -i hadolint/hadolint
/dev/stdin:18:1 unexpected 'O' expecting '#', ADD, ARG, CMD, COPY, ENTRYPOINT, ENV, EXPOSE, FROM,
HEALTHCHECK, LABEL,
MAINTAINER, ONBUILD, RUN, SHELL, STOPSIGNAL, USER, VOLUME, WORKDIR, end of input, or the rest of a
new line followed by the next instruction
$ echo $?
False