What is the difference between CMD vs Entry point ?
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
The ENTRYPOINT instruction looks almost similar to the CMD instruction. However, the main highlighting difference between them is that it will not ignore any of the parameters that you have specified in the Docker run command (CLI parameters).
-> CMD : Sets default parameters that can be overridden from the Docker Command Line Interface (CLI) when a container is running.
-> ENTRYPOINT : Default parameters that cannot be overridden when Docker Containers run with CLI parameters.