From 160cd1ece063f79d8f96184e11d916756e39849a Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Fri, 10 Feb 2017 18:08:45 +1300 Subject: [PATCH] docs(templates): add a section about the command field --- docs/source/templates.rst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/source/templates.rst b/docs/source/templates.rst index 15511bb..da24c47 100644 --- a/docs/source/templates.rst +++ b/docs/source/templates.rst @@ -63,6 +63,22 @@ The registry where the Docker image is stored. If not specified, Portainer will 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`` -------