Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 487 Bytes

DL4003.md

File metadata and controls

27 lines (18 loc) · 487 Bytes

Pattern: Ineffective CMD instruction

Issue: -

Description

Only the last CMD instruction in the Dockerfile will have an effect.

Example of incorrect code:

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

Example of correct code:

FROM busybox
CMD /bin/false

Further Reading