Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Docker by (12.9k points)

Can anyone tell me what is entrypoint in Docker?

1 Answer

0 votes
by (119k points)

ENTRYPOINT instruction enables you to configure a container that will run as an executable. It seems similar to CMD since it also helps you to specify a command with parameters. But, the main difference between ENTRYPOINT and CMD is ENTRYPOINT command and parameters are not ignored if Docker container runs with command line parameters.

ENTRYPOINT has two forms:

ENTRYPOINT ["executable", "param1", "param2"] (exec form, preferred)

ENTRYPOINT command param1 param2 (shell form)

If you are interested to learn Docker from Industry experts then register in this Docker Course by Intellipaat that provides Instructor-led training, hands-on projects, and certification.

Also, watch this video on Docker Basics to learn more:

Related questions

0 votes
1 answer
asked Feb 11, 2021 in Docker by Amyra (12.9k points)
0 votes
1 answer
asked Dec 11, 2020 in Docker by Amyra (12.9k points)
0 votes
1 answer
asked Dec 11, 2020 in Docker by Amyra (12.9k points)
0 votes
1 answer
asked Sep 9, 2020 in Docker by Amyra (12.9k points)
0 votes
1 answer
asked Mar 7, 2020 in Docker by Sudhir_1997 (55.6k points)

Browse Categories

...