1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Windows: Block 'FROM scratch'

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2015-08-14 18:17:19 -07:00
parent 837a66e79b
commit 6df6e2e405

View file

@ -194,7 +194,11 @@ func from(b *builder, args []string, attributes map[string]bool, original string
name := args[0] name := args[0]
// Windows cannot support a container with no base image.
if name == NoBaseImageSpecifier { if name == NoBaseImageSpecifier {
if runtime.GOOS == "windows" {
return fmt.Errorf("Windows does not support FROM scratch")
}
b.image = "" b.image = ""
b.noBaseImage = true b.noBaseImage = true
return nil return nil