default_gateway_windows.go 560 B

123456789101112131415161718192021
  1. package libnetwork
  2. import (
  3. windriver "github.com/docker/docker/libnetwork/drivers/windows"
  4. "github.com/docker/docker/libnetwork/options"
  5. "github.com/docker/docker/libnetwork/types"
  6. )
  7. const libnGWNetwork = "nat"
  8. func getPlatformOption() EndpointOption {
  9. epOption := options.Generic{
  10. windriver.DisableICC: true,
  11. windriver.DisableDNS: true,
  12. }
  13. return EndpointOptionGeneric(epOption)
  14. }
  15. func (c *Controller) createGWNetwork() (*Network, error) {
  16. return nil, types.NotImplementedErrorf("default gateway functionality is not implemented in windows")
  17. }