Enable setting networking mode for docker

This patch enables setting networking mode for the docker
driver. This does not handle the `container` mode.
Closes #175
This commit is contained in:
Abhishek Chanda
2015-09-30 19:15:24 -07:00
parent 2351a97776
commit ee2cd3bed0
3 changed files with 48 additions and 0 deletions

View File

@@ -23,6 +23,11 @@ The `docker` driver supports the following configuration in the job specificatio
* `command` - (Optional) The command to run when starting the container.
* `network_mode` - (Optional) The network mode to be used for the container.
Valid options are `net`, `bridge`, `host` or `none`. If nothing is
specified, the container will start in `bridge` mode. The `container`
network mode is not supported right now.
### Port Mapping
Nomad uses port binding to expose services running in containers using the port