Wissen Infotech interview question

what is entrypoint and CMD?

Interview Answer

Anonymous

28 Jun 2026

ENTRYPOINT defines the main executable that always runs when the container starts. CMD provides the default arguments for the ENTRYPOINT, or if there is no ENTRYPOINT, it acts as the default command to run. So, ENTRYPOINT is the fixed command, and CMD is the default parameter that can be overridden when starting the container.