From 73932d8d22915b02f9e55158f05bf5f85505e875 Mon Sep 17 00:00:00 2001 From: John Howard Date: Wed, 5 Oct 2016 13:15:44 -0700 Subject: [PATCH] Windows: export not supported Signed-off-by: John Howard --- daemon/export.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/export.go b/daemon/export.go index 80d7dbb2e1..602ebc2054 100644 --- a/daemon/export.go +++ b/daemon/export.go @@ -3,6 +3,7 @@ package daemon import ( "fmt" "io" + "runtime" "github.com/docker/docker/container" "github.com/docker/docker/pkg/archive" @@ -12,6 +13,10 @@ 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