github.com/hhrutter/nomad@v0.6.0-rc2.0.20170723054333-80c4b03f0705/client/driver/docker_default.go (about) 1 //+build !windows 2 3 package driver 4 5 import docker "github.com/fsouza/go-dockerclient" 6 7 const ( 8 // Setting default network mode for non-windows OS as bridge 9 defaultNetworkMode = "bridge" 10 ) 11 12 func getPortBinding(ip string, port string) []docker.PortBinding { 13 return []docker.PortBinding{docker.PortBinding{HostIP: ip, HostPort: port}} 14 }