Expand rkt port_map docs since it confused me

(and I wrote it)

Fixes #2272
This commit is contained in:
Michael Schurter 2017-02-01 16:16:12 -08:00
parent a26482a57a
commit bc02869347
1 changed files with 7 additions and 5 deletions

View File

@ -73,16 +73,18 @@ The `rkt` driver supports the following configuration in the job spec:
* `net` - (Optional) A list of networks to be used by the containers
* `port_map` - (Optional) A key/value map of port to be used by the container.
port name in the image manifest file needs to be specified for the value. For example:
* `port_map` - (Optional) A key/value map of ports used by the container. The
value is the port name specified in the image manifest file. When running
Docker images with rkt the port names will be of the form `${PORT}-tcp`. See
[networking](#networking) below for more details.
```
```hcl
port_map {
# If running a Docker image that exposes port 8080
app = "8080-tcp"
}
```
See below for more details.
* `debug` - (Optional) Enable rkt command debug option.