[UserNS] Networks && setgroups problems #4777
Unanswered
MorganeAubry
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Things to try:
There is a setgroups deny system with somewhat complicated rules, but if you're using newgidmap or are root when creating your container (which is the case in your case) then setgroups will be enabled. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I hope everyone's doing alright.
My container is already running as it should but it doesn't have network connection and it has a problem with setgroups.
Networks
I followed this : https://medium.com/@Mark.io/https-medium-com-mark-io-network-setup-with-runc-containers-46b5a9cc4c5b to be able to know how I was supposed to have a network connection running but. Everytime I tried to put the "path": "/var/run/netns/docker_network" bellow the "type": "network" in the namespace category, it gave me this error :
ERRO[0000] runc run failed: unable to start container process: error during container init: error mounting "sysfs" to rootfs at "/sys": mount src=sysfs, dst=/sys, dstFd=/proc/thread-self/fd/8, flags=MS_RDONLY|MS_NOSUID|MS_NODEV|MS_NOEXEC: operation not permitted
And I also try to put the network in its own category but it doesn't work and I saw on some issue that it's depreciated. Any help would be really great.
Setgroups
I'm not sure if this one is linked to the network issue or not. But everytime that I try to do an apt update it tells me this :
So as before any help would be really great.
Here is the config file (it is a beta and it's currently use in a ansible role):
I'm really sorry if this error already exist somewhere, I promess I searched with link word and I didn't find anything. Thank you very much for anyone that would have any information to get me out of this. Really appreciated !
Have a nice day !
Beta Was this translation helpful? Give feedback.
All reactions