3 DL4003
Vlastimil Zeman edited this page 2017-11-10 17:26:33 +00:00

Multiple CMD instructions found. If you list more than one CMD then only the last CMD will take effect.

Problematic code:

FROM busybox
CMD /bin/true
CMD /bin/false

Correct code:

FROM busybox
CMD /bin/false

Rationale:

Rule also implemented in https://github.com/RedCoolBeans/dockerlint/blob/master/src/checks.coffee