Closed dzx-dzx closed 1 year ago
You'll want to chown ``whoami`` .prom_cache
matching the user that's running docker, which might be root or your local user.
the user that's running docker
Can I know exactly who that is by injecting some code?
I run
docker exec -it newsblur_web echo ```id -u```
Before the migration command docker exec -it newsblur_web ./manage.py migrate
which caused the problem, and it returns the id that is the same as my user's, does that mean the following commands are run with my identity?
For future reader: you could be, like me, a victim of Docker Desktop. See https://forums.docker.com/t/bind-mount-permissions-unexpected-mounting-as-root-root/129328/7
I'm trying to set up the project with
make nb
command when this appears:Other issues suggest
chmod
ing the folder to777
, but that doesn't sound safe... I wonder if there is any other solution?