-
Notifications
You must be signed in to change notification settings - Fork 576
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
Permission denied when mounting the redis data dir and enabling persistence #233
Comments
This comment #7 (comment) and the ones after it seem relevant You might have a better time using Docker for Mac https://docs.docker.com/docker-for-mac/docker-toolbox/ I think an easy solution would be to use Docker's named volumes, similar to this issue MariaDB/mariadb-docker#278 (comment) |
same issue hier on synology docker. unable to run redis unless I set the mounted volume to be read/writable by everyone. mounted volume gets owner set to 999 (which I assume is the user redis inside of the container). I am doing a -v /edsm/redis:/data to make data persistent. chown -R 999:999 and setting UID and/or GID in environment settings is not working. Everytime I get a permission error. Postgres works without these hickups. Any workaround? Synology Docker Version: 18.09.0-0506 redis version 5.0.8 (f3c7eac42f433326a8d981b50dba0169fdfaf46abb23fcda2f933a7552ee4ed7) |
Since #48, you can just use (not recommended, but if you really want to run as |
Not working for me. Starting it with |
doing |
Hi,
For about a week now, I've been unable to mount the /data dir as I keep getting a permission error.
When the data dir isn't mounted, everything works perfectly.
The workaround I've been using is:
Environments:
Machine Macbook Pro (MacOS 10.15.4)
Docker Toolbox (with Virtualbox)
docker-machine version 0.16.1, build cce350d7
Client: Docker Engine - Community
Version: 19.03.1
API version: 1.40
Go version: go1.12.5
Git commit: 74b1e89
Built: Thu Jul 25 21:18:17 2019
OS/Arch: darwin/amd64
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 19.03.5
API version: 1.40 (minimum version 1.12)
Go version: go1.12.12
Git commit: 633a0ea838
Built: Wed Nov 13 07:28:45 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.2.10
GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339
runc:
Version: 1.0.0-rc8+dev
GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657
docker-init:
Version: 0.18.0
GitCommit: fec3683
The text was updated successfully, but these errors were encountered: