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

Permissions Issues when running nasher init on docker volume #122

Open
deltreey opened this issue Jul 7, 2024 · 0 comments
Open

Permissions Issues when running nasher init on docker volume #122

deltreey opened this issue Jul 7, 2024 · 0 comments

Comments

@deltreey
Copy link

deltreey commented Jul 7, 2024

I ran into a weird issue where running the command instructed in the README would error constantly:

docker run --rm -v $(pwd):/nasher squattingmonk/nasher:latest init --default

The error was as follows:

Initializing into /nasher
Creating package file at /nasher/nasher.cfg
Error: Cannot open /nasher/nasher.cfg
Error: Could not create package file at /nasher/nasher.cfg

After 2 days of fighting with it, I found that setting permissions was unreliable, but forcing docker to run under the current uid did work:

docker run --rm -u `id -u $USER` -v $(pwd):/nasher squattingmonk/nasher:latest init --default

Not sure if the preferred solution is to simply update the docs, but here ya go!

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