Skip to content

Wire WorkDir into runc command invocation#114

Open
cpuguy83 wants to merge 1 commit into
containerd:mainfrom
cpuguy83:add_workdir
Open

Wire WorkDir into runc command invocation#114
cpuguy83 wants to merge 1 commit into
containerd:mainfrom
cpuguy83:add_workdir

Conversation

@cpuguy83

@cpuguy83 cpuguy83 commented Jul 20, 2026

Copy link
Copy Markdown
Member

I'm using go-runc in github.com/cpuguy83/containerd-shim-systemd-v1 and to make some of the containerd integration tests pass on the shim I need runc to execute in the bundle root, but go-runc didn't really provide a good way to do that, which means either dealing with re-exec or some unshare/chdir logic.

WorkDir sets the working directory of the invoked runc process, applied on both the Linux and non-Linux command paths.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant