2016-07-27 21:57:40 +00:00
|
|
|
//+build !windows
|
|
|
|
|
|
|
|
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
|
|
|
// Setting default network mode for non-windows OS as bridge
|
2016-08-04 21:11:06 +00:00
|
|
|
defaultNetworkMode = "bridge"
|
|
|
|
)
|
|
|
|
|
2016-07-27 21:57:40 +00:00
|
|
|
func getPortBinding(ip string, port string) []docker.PortBinding {
|
|
|
|
return []docker.PortBinding{docker.PortBinding{HostIP: ip, HostPort: port}}
|
|
|
|
}
|