The shell form runs a Dockerfile’s ENTRYPOINT or CMD through a shell. For example, `ENTRYPOINT /myexecutable 1st-arg 2nd-arg` starts a shell as the container’s root process, which then starts the executable. section 6.3.2
This process arrangement affects termination. The shell receives SIGTERM but does not pass it to the child application, so the application may not shut down gracefully. The exec form calls the executable directly and makes it the container’s root process. section 6.3.2
Contrasting Dockerfile forms
Shell form: `CMD /myexecutable 1st-arg 2nd-arg`. Exec form: `ENTRYPOINT ["/myexecutable", "1st-arg", "2nd-arg"]`. Prefer the exec form when the application must receive termination signals directly. section 6.3.2
