diff --git a/website/source/docs/drivers/docker.html.md b/website/source/docs/drivers/docker.html.md index 893f7fbf7..49c3086f3 100644 --- a/website/source/docs/drivers/docker.html.md +++ b/website/source/docs/drivers/docker.html.md @@ -355,7 +355,7 @@ container. These ports will be identified via environment variables. For example: -``` +```hcl port "http" {} ``` @@ -401,6 +401,25 @@ Note that by default this only works with `bridged` networking mode. It may also work with custom networking plugins which implement the same API for expose and port forwarding. +### Using Docker IPs and Ports + +*New in Nomad 0.6.* + +Other than `host` and `none`, Docker network modes create an IP for the +container. This IP is set when the container is run and exposed as a +`NOMAD_DRIVER_IP_