- 4
- 1
- NAS
- DS1515+
- Operating system
- Linux
- Windows
- Mobile operating system
- Android
Last edited:
I tried to run a docker-compose in Portainer on my DS1515+ and ever since I switched to DSM 7 one of the containers is unable to write to the linked volume. The container restarts endlessly and the logs show:
The volume declaration in my docker-compose.yml is:
What permissions do I need to give to what user/group to make this work? (before switching to DSM 7 I had no issues, but apparently the were changes internally in DSM 7. First I tried this using the 'dockerlimited' method for safety considerations, but even when resetting '/var/run/docker.sock' to the original 'root:root' the container is unable to write to the volume. Giving the parameter '--user=root' makes the exception go away, but still nothing gets written in the volume.)
Can anybody spot where the problem is (and be lavish with information, so Dumbo here learns something ?)
Code:
2022-03-16 14:11:22.763 I Initializing core...
2022-03-16 14:11:22.764 I Loading blockchain from folder /home/monero/.bitmonero/lmdb ...
2022-03-16 14:11:22.785 I Stopping cryptonote protocol...
2022-03-16 14:11:22.785 I Cryptonote protocol stopped successfully
2022-03-16 14:11:22.786 E Exception in main! boost::filesystem::create_directory: Permission denied: "/home/monero/.bitmonero/lmdb"
The volume declaration in my docker-compose.yml is:
Code:
volumes:
/volume1/docker/xmrchain:/home/monero/.bitmonero
What permissions do I need to give to what user/group to make this work? (before switching to DSM 7 I had no issues, but apparently the were changes internally in DSM 7. First I tried this using the 'dockerlimited' method for safety considerations, but even when resetting '/var/run/docker.sock' to the original 'root:root' the container is unable to write to the volume. Giving the parameter '--user=root' makes the exception go away, but still nothing gets written in the volume.)
Can anybody spot where the problem is (and be lavish with information, so Dumbo here learns something ?)