Specifying a command
Specifying command
through the public API passes the command to execute when starting the container. The behavior is modeled after Kubernetes and maps to a docker entrypoint. Additional items in command
passed as arguments. For example, in the following example startup
will be called when the container starts with the subsequent items as arguments.
...
"command": [
"startup",
"--argument1=true",
"--argument2=false"
]
...
If needed, command
can be used to add additional arguments to a container, by including the existing CMD or ENTRYPOINT of the image.
Updated 16 days ago