mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: Nice error on stopsignal
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
db54c79d7c
commit
8de7fcaf7e
2 changed files with 4 additions and 1 deletions
|
@ -540,6 +540,9 @@ func volume(b *builder, args []string, attributes map[string]bool, original stri
|
|||
//
|
||||
// Set the signal that will be used to kill the container.
|
||||
func stopSignal(b *builder, args []string, attributes map[string]bool, original string) error {
|
||||
if runtime.GOOS == "windows" {
|
||||
return fmt.Errorf("STOPSIGNAL is not supported on Windows")
|
||||
}
|
||||
if len(args) != 1 {
|
||||
return fmt.Errorf("STOPSIGNAL requires exactly one argument")
|
||||
}
|
||||
|
|
|
@ -367,7 +367,7 @@ func platformSupports(command string) error {
|
|||
return nil
|
||||
}
|
||||
switch command {
|
||||
case "expose", "volume", "user":
|
||||
case "expose", "volume", "user", "stopsignal":
|
||||
return fmt.Errorf("The daemon on this platform does not support the command '%s'", command)
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Add table
Reference in a new issue