Skip to content
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

rootful is broken #217

Open
gilesknap opened this issue Dec 4, 2024 · 0 comments
Open

rootful is broken #217

gilesknap opened this issue Dec 4, 2024 · 0 comments

Comments

@gilesknap
Copy link
Contributor

gilesknap commented Dec 4, 2024

If you use the python copier template developer container and you have docker (or rootful podman) then it does not work as intended:

  • GOOD: it loads and you can work on the project and run tests
  • BAD: massively insecure as you are running as true root
  • UGLY: project files get written by root and the git gets really angry

There used to be a workaround to this in devcontainer.json

"remoteUser": "${localEnv:VSCODE_REMOTE_USER}" 

docker users were then expected to set VSCODE_REMOTE_USER=$(id -u):$(id -g) in their bashrc.
podman users need do nothing as blank == default == root which is just right in a a rootless container.

Not ideal. But it was the best I could come up with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant