-
Notifications
You must be signed in to change notification settings - Fork 66
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
Docker - failed to open stream permission denied #58
Comments
I am having this issue too. Any ideas on how to fix this? |
This issue is caused by different user ids on the host and in the container. Some user manipulation at the command line might work. A quick work around is to create an empty output file, set the permissions to match the user in the container and then force-write the generated image over the dummy image.
docker run --rm -it --name dcv pmsipilot/docker-compose-viz id
uid=1000(dcv) gid=1000(dcv) groups=1000(dcv)
sudo chown 1000:1000 docker-compose.png
docker run --rm -it --name dcv -v $(pwd):/input pmsipilot/docker-compose-viz render -m image --force docker-compose.yml |
I fixed this by just giving write permissions to the entire project folder |
another workaround that is a bit cleaner IMHO: run the container with the docker run --rm -it --user $UID:$GID --name dcv -v "$(pwd):/input" pmsipilot/docker-compose-viz render -m image docker-compose.yml |
I tried docker-compose-viz
The text was updated successfully, but these errors were encountered: