CMD vs ENTRYPOINT
Select an icon to see what it is.
Step 2 of 6
ENTRYPOINT is the fixed part
With ENTRYPOINT ["echo"] and CMD ["hello"], the image config has both Entrypoint and Cmd. dockerd starts the container with the Entrypoint followed by the Cmd. So this image runs echo hello.
$ docker run --rm cmddemoImage config
{"Config": {"Entrypoint": ["echo"]"Cmd": ["hello"]}}