From 2c4f60f8c2d120492e2a52720bb60c6d4a433153 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 1 Oct 2015 14:43:08 -0700 Subject: [PATCH] Example for the command arg on docker_container. For those accustomed to running commands via a shell it may not be clear why this argument is a list and what the elements of that list should be. Hopefully giving an example will help people understand what is expected. This is in response to the misunderstanding discovered in #3011. --- r/container.html.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/r/container.html.markdown b/r/container.html.markdown index 5653f139..ee10ab6e 100644 --- a/r/container.html.markdown +++ b/r/container.html.markdown @@ -35,7 +35,8 @@ The following arguments are supported: as is shown in the example above. * `command` - (Optional, list of strings) The command to use to start the - container. + container. For example, to run `/usr/bin/myprogram -f baz.conf` set the + command to be `["/usr/bin/myprogram", "-f", "baz.conf"]`. * `dns` - (Optional, set of strings) Set of DNS servers. * `env` - (Optional, set of strings) Environmental variables to set. * `links` - (Optional, set of strings) Set of links for link based