mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
a3c4ab9b65
Signed-off-by: John Howard <jhoward@microsoft.com>
13 lines
353 B
Go
13 lines
353 B
Go
package dockerfile
|
|
|
|
import "fmt"
|
|
|
|
// platformSupports is gives users a quality error message if a Dockerfile uses
|
|
// a command not supported on the platform.
|
|
func platformSupports(command string) error {
|
|
switch command {
|
|
case "stopsignal":
|
|
return fmt.Errorf("The daemon on this platform does not support the command '%s'", command)
|
|
}
|
|
return nil
|
|
}
|