|
@@ -8,7 +8,6 @@ import (
|
|
|
"github.com/docker/docker/errdefs"
|
|
|
"github.com/docker/docker/pkg/archive"
|
|
|
"github.com/docker/docker/pkg/ioutils"
|
|
|
- "github.com/docker/docker/pkg/system"
|
|
|
)
|
|
|
|
|
|
// ContainerExport writes the contents of the container to the given
|
|
@@ -47,9 +46,6 @@ func (daemon *Daemon) ContainerExport(name string, out io.Writer) error {
|
|
|
}
|
|
|
|
|
|
func (daemon *Daemon) containerExport(container *container.Container) (arch io.ReadCloser, err error) {
|
|
|
- if !system.IsOSSupported(container.OS) {
|
|
|
- return nil, fmt.Errorf("cannot export %s: %s ", container.ID, system.ErrNotSupportedOperatingSystem)
|
|
|
- }
|
|
|
rwlayer, err := daemon.imageService.GetLayerByID(container.ID)
|
|
|
if err != nil {
|
|
|
return nil, err
|