evaluator_windows.go 361 B

12345678910111213
  1. package dockerfile
  2. import "fmt"
  3. // platformSupports is gives users a quality error message if a Dockerfile uses
  4. // a command not supported on the platform.
  5. func platformSupports(command string) error {
  6. switch command {
  7. case "user", "stopsignal":
  8. return fmt.Errorf("The daemon on this platform does not support the command '%s'", command)
  9. }
  10. return nil
  11. }