mirror of https://github.com/containers/podman.git
18 lines
873 B
Markdown
18 lines
873 B
Markdown
#### **--entrypoint**=*"command"* | *'["command", "arg1", ...]'*
|
|
|
|
Overwrite the default ENTRYPOINT of the image.
|
|
|
|
This option allows you to overwrite the default entrypoint of the image.
|
|
|
|
The ENTRYPOINT of an image is similar to a COMMAND
|
|
because it specifies what executable to run when the container starts, but it is
|
|
(purposely) more difficult to override. The ENTRYPOINT gives a container its
|
|
default nature or behavior, so that when you set an ENTRYPOINT you can run the
|
|
container as if it were that binary, complete with default options, and you can
|
|
pass in more options via the COMMAND. But, sometimes an operator may want to run
|
|
something else inside the container, so you can override the default ENTRYPOINT
|
|
at runtime by using a **--entrypoint** and a string to specify the new
|
|
ENTRYPOINT.
|
|
|
|
You need to specify multi option commands in the form of a json string.
|