open-nomad/client/driver/docker_windows.go

14 lines
359 B
Go
Raw Normal View History

package driver
import docker "github.com/fsouza/go-dockerclient"
const (
2016-08-05 17:47:44 +00:00
// Default network mode for windows containers is nat
defaultNetworkMode = "nat"
)
//Currently Windows containers don't support host ip in port binding.
func getPortBinding(ip string, port string) []docker.PortBinding {
2017-09-26 22:26:33 +00:00
return []docker.PortBinding{{HostIP: "", HostPort: port}}
}