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-05-04 18:06:54 +00:00
|
|
|
case "user", "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
|
|
|
|
}
|