Merge pull request #14 from portainer/docs-templates-command

docs(templates): add a section about the command field
pull/16/head
Anthony Lapenna 2017-02-10 18:11:08 +13:00 committed by GitHub
commit 37f4622271
1 changed files with 16 additions and 0 deletions

View File

@ -63,6 +63,22 @@ The registry where the Docker image is stored. If not specified, Portainer will
This field is **optional**. This field is **optional**.
``command``
------------
The command to run in the container. If not specified, the container will use the default command specified in its Dockerfile.
This field is **optional**.
Example:
.. code-block:: json
{
"command": "/bin/bash -c \"echo hello\" && exit 777"
}
``env`` ``env``
------- -------