diff --git a/pkg/rootless/rootless.go b/pkg/rootless/rootless.go index 97266d7eaf..f584e7b4a7 100644 --- a/pkg/rootless/rootless.go +++ b/pkg/rootless/rootless.go @@ -132,11 +132,6 @@ func createParentOpt(driver portDriver, stateDir string, enableIPv6 bool) (*pare return nil, errors.Wrapf(err, "failed to mkdir %s", stateDir) } - stateDir, err := os.MkdirTemp("", "rootless") - if err != nil { - return nil, err - } - driver.SetStateDir(stateDir) opt := &parent.Opt{