The ENTRYPOINT specifies a command that will always be executed when the container starts.
The CMD specifies arguments that will be fed to the ENTRYPOINT.
ENTRYPOINT
can also be overridden using--entrypoint
flagCMD
will be overridden when running the container with alternative arguments (e.g.bash
).