CMD vs ENTRYPOINT
Select an icon to see what it is.
Step 3 of 6
Arguments after the image replace CMD only
docker run cmddemo world sends Cmd as [world] in the create request, and the image's Entrypoint stays. The container runs echo world. This is why an image with an ENTRYPOINT behaves like a command you pass arguments to.
$ docker run --rm cmddemo worldPOST /v1.45/containers/create
{"Image": "cmddemo""Cmd": ["world"]}