From ee5e02fa3cf19f875a5d6b28a9bbe5c06f2f1ac6 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Mon, 19 Jun 2017 17:17:40 -0700 Subject: [PATCH] Document address_mode --- website/source/docs/drivers/docker.html.md | 21 ++++++++++++++++++- .../docs/job-specification/service.html.md | 10 ++++++++- 2 files changed, 29 insertions(+), 2 deletions(-) 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_