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.
|
Beta Was this translation helpful? Give feedback.
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) |
Beta Was this translation helpful? Give feedback.
-
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 ;) ) |
Beta Was this translation helpful? Give feedback.
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)