-
Notifications
You must be signed in to change notification settings - Fork 86
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
Use a directory writable by nonroot. #12
Conversation
Signed-off-by: Adrian Mouat <[email protected]>
oh, duh... that makes sense! However, even with these changes (and rebuilding and tagging), I still see the out of memory error...
|
You've mounted a directory that's not writable by the user. In this case it's the permissions of the directory on your host that are the problem. Try running:
EDIT: Thinking about this again,
Where |
If this is the expected use case there a few things we can do:
|
Actually, I'm just thinking if you're running on a Mac in Docker Desktop, this might be because of the use of |
This is on Windows with WSL. And yeah, it seems to be because of the default permissions that docker creates /tmp/golink with. And none of those options seem great. I guess this is just part of using the wolfi static image? |
err... I guess the wolfi static image is only relevant because it runs as non-root by default (which is a better choice for security, but results in this well-known issue) |
Ah, WSL explains things. I assume WSL works fine without the volume mount? My suggestion would be:
|
If I'm reading this table correctly, I think the Google distroless images do the inverse... they default to root and provide "nonroot" tagged images. And that does seem like the pragmatic choice here as well. I think we'll switch to running as root by default (even if it's less ideal) and later consider updating CI workflows to do a nonroot tag as well. |
You're right. I'm still of the opinion that in this case nonroot should be the default for security reasons, but it's certainly arguable. |
okay, turns out the docs are too bad for instructing people how to handle nonroot. Added docs to your PR branch, merging now. |
Issue tailscale#12 changes directory used by Docker image. This commit updates the fly.io instructions to use the same directory. Signed-off-by: Gabriel Wong <[email protected]>
PR tailscale#12 changes directory used by Docker image. This commit updates the fly.io instructions to use the same directory. Signed-off-by: Gabriel Wong <[email protected]>
PR #12 changes directory used by Docker image. This commit updates the fly.io instructions to use the same directory. Signed-off-by: Gabriel Wong <[email protected]>
Even after chowning the directory to 645532, I get |
The Dockerfile should use a directory writeable by nonroot for sqllite.
Fixes #6
Signed-off-by: Adrian Mouat [email protected]