Documentation ¶
Index ¶
- Constants
- func Allocate(id, requestedMac, requestedIP, requestedIPv6 string) (*network.Settings, error)
- func AllocatePort(id string, port nat.Port, binding nat.PortBinding) (nat.PortBinding, error)
- func InitDriver(config *Config) error
- func LinkContainers(action, parentIP, childIP string, ports []nat.Port, ignoreErrors bool) error
- func Release(id string)
- func RequestPort(ip net.IP, proto string, port int) (int, error)
- type Config
Constants ¶
View Source
const ( DefaultNetworkBridge = "docker0" MaxAllocatedPortAttempts = 10 )
Variables ¶
This section is empty.
Functions ¶
func AllocatePort ¶
func AllocatePort(id string, port nat.Port, binding nat.PortBinding) (nat.PortBinding, error)
Allocate an external port and map it to the interface
func InitDriver ¶
func LinkContainers ¶
TODO: should it return something more than just an error?
Types ¶
Click to show internal directories.
Click to hide internal directories.