open-nomad/client/driver/docker_default.go

15 lines
318 B
Go
Raw Normal View History

//+build !windows
package driver
import docker "github.com/fsouza/go-dockerclient"
const (
2016-08-05 17:47:44 +00:00
// Setting default network mode for non-windows OS as bridge
defaultNetworkMode = "bridge"
)
func getPortBinding(ip string, port string) []docker.PortBinding {
2017-09-26 22:26:33 +00:00
return []docker.PortBinding{{HostIP: ip, HostPort: port}}
}