mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
daemon: remove uses of deprecated system.MkdirAll
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user