@@ -168,7 +168,7 @@ disabled_plugins = ["cri"]
168168 containerdArgs := []string {c .Containerd , "--config" , configFile }
169169 rootlessKitState := filepath .Join (tmpdir , "rootlesskit-containerd" )
170170 if rootless {
171- containerdArgs = append (append ([]string {"sudo" , "-E" , "- u" , fmt .Sprintf ("#%d" , c .UID ), "-i" ,
171+ containerdArgs = append (append ([]string {"sudo" , "-u" , fmt .Sprintf ("#%d" , c .UID ), "-i" ,
172172 fmt .Sprintf ("CONTAINERD_ROOTLESS_ROOTLESSKIT_STATE_DIR=%s" , rootlessKitState ),
173173 // Integration test requires the access to localhost of the host network namespace.
174174 // TODO: remove these configurations
@@ -211,7 +211,7 @@ disabled_plugins = ["cri"]
211211 if err != nil {
212212 return nil , nil , err
213213 }
214- buildkitdArgs = append ([]string {"sudo" , "-E" , "- u" , fmt .Sprintf ("#%d" , c .UID ), "-i" , "--" , "exec" ,
214+ buildkitdArgs = append ([]string {"sudo" , "-u" , fmt .Sprintf ("#%d" , c .UID ), "-i" , "--" , "exec" ,
215215 "nsenter" , "-U" , "--preserve-credentials" , "-m" , "-t" , fmt .Sprintf ("%d" , pid )},
216216 append (buildkitdArgs , "--containerd-worker-snapshotter=native" )... )
217217 }
0 commit comments