What is the difference between CMD vs Entry point ?

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.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x