Pattern: Ineffective CMD
instruction
Issue: -
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
Pattern: Ineffective CMD
instruction
Issue: -
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