diff --git a/daemon/daemon.go b/daemon/daemon.go index 6212b4e43c..6fa2e13838 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -66,7 +66,6 @@ import ( "github.com/docker/docker/pkg/idtools" "github.com/docker/docker/pkg/plugingetter" "github.com/docker/docker/pkg/sysinfo" - "github.com/docker/docker/pkg/system" "github.com/docker/docker/plugin" pluginexec "github.com/docker/docker/plugin/executor/containerd" refstore "github.com/docker/docker/reference" @@ -810,7 +809,7 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S return nil, fmt.Errorf("Unable to get the full path to the TempDir (%s): %s", tmp, err) } if isWindows { - if err := system.MkdirAll(realTmp, 0); err != nil { + if err := os.MkdirAll(realTmp, 0); err != nil { return nil, fmt.Errorf("Unable to create the TempDir (%s): %s", realTmp, err) } os.Setenv("TEMP", realTmp) diff --git a/daemon/runtime_unix.go b/daemon/runtime_unix.go index 383f20dfc6..acb058faf2 100644 --- a/daemon/runtime_unix.go +++ b/daemon/runtime_unix.go @@ -22,7 +22,6 @@ import ( "github.com/docker/docker/errdefs" "github.com/docker/docker/libcontainerd/shimopts" "github.com/docker/docker/pkg/ioutils" - "github.com/docker/docker/pkg/system" "github.com/opencontainers/runtime-spec/specs-go/features" "github.com/pkg/errors" ) @@ -94,7 +93,7 @@ func initRuntimesDir(cfg *config.Config) error { if err := os.RemoveAll(runtimeDir); err != nil { return err } - return system.MkdirAll(runtimeDir, 0o700) + return os.MkdirAll(runtimeDir, 0o700) } func setupRuntimes(cfg *config.Config) (runtimes, error) {