Introduction

ENTRYPOINT is the command that is run CMD is the parameter passed to the command.

FROM ubuntu
ENTRYPOINT ["sleep"]
CMD ["5m"]

For example in this case we are overriding the default command of ubuntu docker image with sleep command and the default parameters for that command is 5m.