advancedTop 100 Interview Questions

What's the practical difference between CMD and ENTRYPOINT?

CMD provides a default command (and/or default arguments) that is entirely overridden if the user supplies a command at `docker run`. ENTRYPOINT defines the fixed executable that always runs; when both are present, CMD's value becomes ENTRYPOINT's default arguments rather than being replaced outright.

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.

What's the practical difference between CMD and ENTRYPOINT?

Next Step

Continue to Why is exec form preferred over shell form for CMD/ENTRYPOINT?← Back to all Docker questions