permission denied if no docker user
Closed this issue · 2 comments
GeniusWiki commented
I have setup docker in Ubuntu 16.04 with offical setup steps.
When run you docker image, it failed to start because it cannot create /activemq/data/kahadb directory. After I manually give 777 permission on /activemq/data (root:root), it can success start and create kahadb directory with 999:docker as user:group.
Here is my docker-compose config:
activemq:
image: rmohr/activemq:latest
environment:
ACTIVEMQ_DATA: "/var/lib/activemq/data"
volumes:
- ./data/activemq/data:/var/lib/activemq/data
rmohr commented
Sorry, missed this issue. How did you finally solve it?
I don't think that there is a good solution for synchronizing permissions between host volumes and docker containers. However, one thing you could do, is using a data-only container (volumes_from
). In this case, you would have matching permissions for the folders.
rmohr commented
Closing this. Feel free to reopen it if needed.