Skip to content

Commit 286b024

Browse files
authored
Merge pull request containerd#3385 from apostasie/dev-nsenter
Fix nsenter working dir for child
2 parents 1a55c72 + 7f0dec8 commit 286b024

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/rootlessutil/parent_linux.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ func ParentMain(hostGatewayIP string) error {
102102
log.L.WithError(err).Warn("unable to determine working directory")
103103
} else {
104104
args = append(args, "-w"+wd)
105+
os.Setenv("PWD", wd)
105106
}
106107

107108
args = append(args, "--preserve-credentials",

0 commit comments

Comments
 (0)