DEV Community

Discussion on: Docker CMD vs ENTRYPOINT: explaining the difference

Collapse
 
supportic profile image
Supportic

Entrypoint is the main program to execute. E.g. /bin/bash
Comand is used to pass parameters.
The good thing about comand is, that you can provide a default fallback for the compose file and OVERWRITE it if needed when using the docker CLI.