Intellipaat Back

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

Can anyone tell me how many cmd commands can write in docker file?

1 Answer

0 votes
by (119k points)

You can write only one CMD commands in a Dockerfile. Even, if you write more than one CMD then it will take only the last CMD.

I recommend this Docker Training Online Course by Intellipaat to learn Docker.

Also, you can watch this Docker commands tutorial:

Related questions

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 Nov 1, 2020 in Docker by Sudhir_1997 (55.6k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...