driver_windows.go 616 B

1234567891011121314151617181920
  1. package execdriver
  2. import "github.com/docker/docker/pkg/nat"
  3. // Network settings of the container
  4. type Network struct {
  5. Interface *NetworkInterface `json:"interface"`
  6. ContainerID string `json:"container_id"` // id of the container to join network.
  7. }
  8. // NetworkInterface contains network configs for a driver
  9. type NetworkInterface struct {
  10. MacAddress string `json:"mac"`
  11. Bridge string `json:"bridge"`
  12. IPAddress string `json:"ip"`
  13. // PortBindings is the port mapping between the exposed port in the
  14. // container and the port on the host.
  15. PortBindings nat.PortMap `json:"port_bindings"`
  16. }