mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Windows: export not supported
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
parent
aa8996f70b
commit
73932d8d22
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue