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