-
Notifications
You must be signed in to change notification settings - Fork 273
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
Need solution for running dev container with rootless Docker #479
Comments
Did you try to alter file permissions? Like using |
To write files from a rootless Docker container to the host filesystem, you need to ensure that the user inside the container has the necessary permissions to write to the specified directory on the host. Here are the steps to achieve this:
@jcr010910 Which image are you using? The images hosted from https://github.com/devcontainers/images have ^ configured to support rootless docker. |
From inside the dev container, it appears as if the 'vscode' user has the same id as the host user (1000). I don't think this statement is correct...
Note: Rootless Docker is not the same thing as a container-internal non-root user. |
Writing to the host filesystem fails unless the container is run with root privileges.
Steps to Reproduce:
Expected Behavior:
Files should be written successfully to the host filesystem without needing to run the container as root.
The text was updated successfully, but these errors were encountered: