opencontainers / runc

CLI tool for spawning and running containers according to the OCI specification
https://www.opencontainers.org/
Apache License 2.0
11.58k stars 2.06k forks source link

fix a debug msg for user ns in nsexec #4311

Closed lifubang closed 3 weeks ago

lifubang commented 3 weeks ago

When I was using runc --debug to run a container with user ns, I saw two debug msgs request stage-0 to map user namespace, it would make users confused.

At the first I thought runc requested stage-0 two times to map user ns? But after looked into the code, there are two same debug msgs in nsexec: https://github.com/opencontainers/runc/blob/6b9b2c3d/libcontainer/nsenter/nsexec.c#L899

kolyshkin commented 3 weeks ago

not sure what's happening with fedora ci, it times out; restarted