Fix docker args docs
This commit is contained in:
parent
9b98d70aec
commit
c60962045a
|
@ -44,12 +44,17 @@ 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
|
||||
|
|
Loading…
Reference in New Issue