open-nomad/drivers/docker/driver_default.go

12 lines
215 B
Go

//go:build !windows
package docker
import (
docker "github.com/fsouza/go-dockerclient"
)
func getPortBinding(ip string, port string) docker.PortBinding {
return docker.PortBinding{HostIP: ip, HostPort: port}
}