Skip to content
Vlastimil Zeman edited this page Nov 10, 2017 · 3 revisions

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

Clone this wiki locally