Docker and CI/CD · Junior · Question 6 of 75

How does ENTRYPOINT relate to CMD?

Explanation

With ENTRYPOINT ["node"] and CMD ["server.js"], docker run image other.js replaces only the arguments. Without ENTRYPOINT, run arguments replace CMD entirely.

Further reading

Problem with a question

Docker and CI/CD · Junior · question 6

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz