ENTRYPOINT configures a container image to run as an executable when launched with Podman. Unlike CMD, it is not overwritten when arguments are passed to podman run. section 2.3.1
Distinguish the related Containerfile directives:
- CMD specifies the default command, while ENTRYPOINT establishes the executable that receives launch arguments. section 2.3.1
- RUN executes commands while building an image; ENTRYPOINT applies when a user launches a container. section 2.3.1
Passing an argument to the entrypoint
With ENTRYPOINT "/bin/sh -c", running podman run <image> -d passes the -d argument to the configured entrypoint. section 2.3.1
Table 2.7 Containerfile directives that define the OCI Runtime Specification (view table figure)
Use the directive reference to compare ENTRYPOINT with CMD and other instructions that populate the OCI Runtime Specification. section 2.3.1


