github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/builder/dockerfile/evaluator_windows.go (about)

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