What is cmd and entrypoint in Docker

0 votes
What is cmd and entrypoint in Docker?
Oct 19, 2020 in Docker by anonymous
• 19,550 points
1,385 views

1 answer to this question.

0 votes
CMD and ENTRYPOINT are instructions given in the dockerfile.

The main purpose of a CMD is to provide defaults for an executing container. These defaults can include an executable, or they can omit the executable, in which case you must specify an ENTRYPOINT instruction as well.

For more details check https://docs.docker.com/engine/reference/builder/
answered Oct 19, 2020 by Kim

Related Questions In Docker

0 votes
1 answer

What is the difference between “expose” and “publish” in Docker?

Basically, you have three options: Neither specify EXPOSE nor -p -> ...READ MORE

answered Jul 18, 2018 in Docker by Nilesh
• 7,060 points
3,996 views
0 votes
3 answers

What is the difference between a Docker image and a container?

Images are read-only templates that contain a ...READ MORE

answered Aug 10, 2020 in Docker by Vishal
• 260 points
7,601 views
0 votes
1 answer
0 votes
0 answers

what is the use of docker history command in Docker?

I am trying to find the initial ...READ MORE

Jun 20, 2019 in Docker by Shubham
• 1,000 points
1,843 views
+2 votes