|
@@ -18,7 +18,6 @@ import (
|
|
"github.com/docker/docker/errdefs"
|
|
"github.com/docker/docker/errdefs"
|
|
"github.com/docker/docker/image"
|
|
"github.com/docker/docker/image"
|
|
"github.com/docker/docker/pkg/idtools"
|
|
"github.com/docker/docker/pkg/idtools"
|
|
- "github.com/docker/docker/pkg/system"
|
|
|
|
"github.com/docker/docker/runconfig"
|
|
"github.com/docker/docker/runconfig"
|
|
v1 "github.com/opencontainers/image-spec/specs-go/v1"
|
|
v1 "github.com/opencontainers/image-spec/specs-go/v1"
|
|
"github.com/opencontainers/selinux/go-selinux"
|
|
"github.com/opencontainers/selinux/go-selinux"
|
|
@@ -132,9 +131,6 @@ func (daemon *Daemon) create(opts createOpts) (retC *container.Container, retErr
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
os = img.OperatingSystem()
|
|
os = img.OperatingSystem()
|
|
- if !system.IsOSSupported(os) {
|
|
|
|
- return nil, system.ErrNotSupportedOperatingSystem
|
|
|
|
- }
|
|
|
|
imgID = img.ID()
|
|
imgID = img.ID()
|
|
} else if isWindows {
|
|
} else if isWindows {
|
|
os = "linux" // 'scratch' case.
|
|
os = "linux" // 'scratch' case.
|