Why does rootless nerdctl run two times of main()? #2013
|
I changed one line ./cmd/nerdctl/main.go to add log for starting main. Then if I run rootless nerdctl, it will print two times. The rootful nerdctl only prints it for one time. |
Answered by
AkihiroSuda
Feb 16, 2023
Replies: 2 comments 4 replies
|
To enter the namespaces. Lines 229 to 232 in bb7bba5 (Without this, nsentering to userns isn't possible with Go AFAICS due to threading) |
0 replies
Answer selected by
AkihiroSuda
why are we entering to Other question: how this entrering is handled in the case of rootfull mode ? ( you can answer me by providing me a link or simple phrase ;) ) |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To enter the namespaces.
nerdctl/cmd/nerdctl/main.go
Lines 229 to 232 in bb7bba5
(Without this, nsentering to userns isn't possible with Go AFAICS due to threading)