-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatal: /run belongs to uid 0 instead of 999 #600
Comments
Do you have a |
I do have it, it's an
Upon building the image, I verified that it's properly owner by my user. But in runtime |
OK, two more questions (to inform my diagnosis):
Thanks. |
Yes, I set |
I can confirm that this happens and preinit exits with fatal failure even with
|
I see. So it appears that your container manager mounts Unfortunately, this is incorrect. The difference between The current version of s6-overlay detects that the The fix is to find where your container manager mounts If that proves too difficult, I can probably add an option in a future version of s6-overlay that allows it to run on insecure |
@skarnet At least in K8s world, sadly it's not possible to change
Since we use s6 extensively in K8s, it would be great if we could silence this or just have it as non-fatal warning, since as long as container runs as non-UID 0, everything inside is also non-root (and mapped to a single user) and |
It is true that the mapping to a single uid makes the |
If you have the ability to build s6-overlay yourself, could you please test the latest commit? It should print a warning, but still run your container. If it works for you, I'll cut a new release. |
@skarnet I can confirm that build from the latest tip (42e9021 and 1705b0f) prints a warning but proceed booting as expected, as seen below:
Thank you! I can confirm that this helps. |
Bumping the image from
v3.1.6.2
tov3.2.0.2
resulted in containers failing with:I'm running the pod under a non-privileged uid 999 with read-only root fs, relevant dirs have all the proper chowns, everything worked fine before the upgrade.
The text was updated successfully, but these errors were encountered: