|
@@ -32,7 +32,6 @@ import (
|
|
|
"github.com/sirupsen/logrus"
|
|
|
// register graph drivers
|
|
|
_ "github.com/docker/docker/daemon/graphdriver/register"
|
|
|
- "github.com/docker/docker/daemon/initlayer"
|
|
|
"github.com/docker/docker/daemon/stats"
|
|
|
dmetadata "github.com/docker/docker/distribution/metadata"
|
|
|
"github.com/docker/docker/distribution/xfer"
|
|
@@ -41,7 +40,6 @@ import (
|
|
|
"github.com/docker/docker/layer"
|
|
|
"github.com/docker/docker/libcontainerd"
|
|
|
"github.com/docker/docker/migrate/v1"
|
|
|
- "github.com/docker/docker/pkg/containerfs"
|
|
|
"github.com/docker/docker/pkg/idtools"
|
|
|
"github.com/docker/docker/pkg/locker"
|
|
|
"github.com/docker/docker/pkg/plugingetter"
|
|
@@ -1142,11 +1140,6 @@ func prepareTempDir(rootDir string, rootIDs idtools.IDPair) (string, error) {
|
|
|
return tmpDir, idtools.MkdirAllAndChown(tmpDir, 0700, rootIDs)
|
|
|
}
|
|
|
|
|
|
-func (daemon *Daemon) setupInitLayer(initPath containerfs.ContainerFS) error {
|
|
|
- rootIDs := daemon.idMappings.RootPair()
|
|
|
- return initlayer.Setup(initPath, rootIDs)
|
|
|
-}
|
|
|
-
|
|
|
func (daemon *Daemon) setGenericResources(conf *config.Config) error {
|
|
|
genericResources, err := config.ParseGenericResources(conf.NodeGenericResources)
|
|
|
if err != nil {
|