diff options
Diffstat (limited to 'daemon/runtime_unix.go')
-rw-r--r-- | daemon/runtime_unix.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/daemon/runtime_unix.go b/daemon/runtime_unix.go index df16aa14d7..52e976f75f 100644 --- a/daemon/runtime_unix.go +++ b/daemon/runtime_unix.go @@ -14,7 +14,6 @@ import ( "github.com/docker/docker/api/types" "github.com/docker/docker/daemon/config" "github.com/docker/docker/errdefs" - "github.com/docker/docker/pkg/ioutils" "github.com/pkg/errors" "github.com/sirupsen/logrus" ) @@ -56,7 +55,7 @@ func (daemon *Daemon) initRuntimes(runtimes map[string]types.Runtime) (err error runtimeDir := filepath.Join(daemon.configStore.Root, "runtimes") // Remove old temp directory if any os.RemoveAll(runtimeDir + "-old") - tmpDir, err := ioutils.TempDir(daemon.configStore.Root, "gen-runtimes") + tmpDir, err := os.MkdirTemp(daemon.configStore.Root, "gen-runtimes") if err != nil { return errors.Wrap(err, "failed to get temp dir to generate runtime scripts") } |