2016-03-30 22:54:16 +00:00
|
|
|
package dockerfile
|
|
|
|
|
2016-04-06 19:01:29 +00:00
|
|
|
import "fmt"
|
2016-03-30 22:54:16 +00:00
|
|
|
|
2016-04-06 19:01:29 +00:00
|
|
|
// platformSupports is gives users a quality error message if a Dockerfile uses
|
|
|
|
// a command not supported on the platform.
|
2016-03-30 22:54:16 +00:00
|
|
|
func platformSupports(command string) error {
|
|
|
|
switch command {
|
2016-11-14 22:01:16 +00:00
|
|
|
case "stopsignal":
|
2016-03-30 22:54:16 +00:00
|
|
|
return fmt.Errorf("The daemon on this platform does not support the command '%s'", command)
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|