2 DL4004
Vlastimil Zeman edited this page 2017-11-10 17:37:08 +00:00

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

Problematic code:

FROM busybox
ENTRYPOINT /bin/true
ENTRYPOINT /bin/false

Correct code:

FROM busybox
ENTRYPOINT /bin/false

Rationale:

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