From 5459ef0ecf429ed0293e975abee11bdbbc2a2f14 Mon Sep 17 00:00:00 2001 From: John Howard Date: Tue, 8 Aug 2017 12:54:06 -0700 Subject: [PATCH] LCOW: Don't block export Signed-off-by: John Howard --- daemon/export.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/export.go b/daemon/export.go index 402e67583d..081e1639b7 100644 --- a/daemon/export.go +++ b/daemon/export.go @@ -13,15 +13,15 @@ import ( // ContainerExport writes the contents of the container to the given // writer. An error is returned if the container cannot be found. func (daemon *Daemon) ContainerExport(name string, out io.Writer) error { - if runtime.GOOS == "windows" { - return fmt.Errorf("the daemon on this platform does not support export of a container") - } - container, err := daemon.GetContainer(name) if err != nil { return err } + if runtime.GOOS == "windows" && container.Platform == "windows" { + return fmt.Errorf("the daemon on this platform does not support exporting Windows containers") + } + data, err := daemon.containerExport(container) if err != nil { return fmt.Errorf("Error exporting container %s: %v", name, err)