Question
Dockerfile has reserved words CMD and ENTRYPOINT. They seem to do the same thing. What are the differences between CMD and ENTRYPOINT in Docker besides their words’ lengths?
Answer
There are many similarities between these two reserved words in Dockerfile “language.” But here are three differences:
#1 “…CMD can be overwritten by an argument to docker run, while ENTRYPOINT can be overwritten only by using the –entrypoint option of docker run.” is a quote taken from page 43 of
…
Continue reading “What Are The Differences between CMD and ENTRYPOINT in Docker?”