mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
21 lines
616 B
Go
21 lines
616 B
Go
|
package execdriver
|
||
|
|
||
|
import "github.com/docker/docker/pkg/nat"
|
||
|
|
||
|
// Network settings of the container
|
||
|
type Network struct {
|
||
|
Interface *NetworkInterface `json:"interface"`
|
||
|
ContainerID string `json:"container_id"` // id of the container to join network.
|
||
|
}
|
||
|
|
||
|
// NetworkInterface contains network configs for a driver
|
||
|
type NetworkInterface struct {
|
||
|
MacAddress string `json:"mac"`
|
||
|
Bridge string `json:"bridge"`
|
||
|
IPAddress string `json:"ip"`
|
||
|
|
||
|
// PortBindings is the port mapping between the exposed port in the
|
||
|
// container and the port on the host.
|
||
|
PortBindings nat.PortMap `json:"port_bindings"`
|
||
|
}
|