Fix docker args docs

This commit is contained in:
Seth Vargo 2016-09-27 19:12:56 -07:00
parent 9b98d70aec
commit c60962045a
No known key found for this signature in database
GPG key ID: 905A90C2949E8787

View file

@ -44,13 +44,18 @@ The following options are available for use in the job specification.
* `command` - (Optional) The command to run when starting the container.
* `args` - (Optional) A list of arguments to the optional `command`. If no
`command` is present, `args` are ignored. References to environment variables
or any [interpretable Nomad variables](/docs/jobspec/interpreted.html) will be
interpreted before launching the task. For example:
`command` is specified, the args are passed directly to the container.
References to environment variables or any [interpretable Nomad
variables](/docs/jobspec/interpreted.html) will be interpreted before
launching the task. For example:
```
args = ["${nomad.datacenter}", "${MY_ENV}", "${meta.foo}"]
```
```hcl
args = [
"${nomad.datacenter}",
"${MY_ENV}",
"${meta.foo}",
]
```
* `labels` - (Optional) A key/value map of labels to set to the containers on
start.