checkoptions.go 437 B

123456789101112131415161718192021
  1. // +build windows
  2. package windows
  3. import (
  4. "errors"
  5. "github.com/docker/docker/daemon/execdriver"
  6. )
  7. func checkSupportedOptions(c *execdriver.Command) error {
  8. // Windows doesn't support username
  9. if c.ProcessConfig.User != "" {
  10. return errors.New("Windows does not support the username option")
  11. }
  12. // TODO Windows: Validate other fields which Windows doesn't support, factor
  13. // out where applicable per platform.
  14. return nil
  15. }