docker-activemq icon indicating copy to clipboard operation
docker-activemq copied to clipboard

permission denied if no docker user

Open DapengNi opened this issue 9 years ago • 2 comments

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

DapengNi avatar Feb 10 '17 04:02 DapengNi

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 avatar Jul 20 '17 08:07 rmohr

Closing this. Feel free to reopen it if needed.

rmohr avatar Aug 30 '17 09:08 rmohr