RabbitMQ on Docker: Permission denied when chown-i

2019-05-28 13:24发布

问题:

I use Kitematic to manage my containers. I run rabbitmq on docker and it's running. The problem is when I configure its volume. Whenever I set local folder for its volume (in Kitematic) it will stop, start, and print the following error:

chown: changing ownership of '/var/lib/rabbitmq/.erlang.cookie': Permission denied

How do I solve this problem?

回答1:

this should fix it chmod 600 /path/to/your/local/volume/.erlang.cookie

Found the answer in https://serverfault.com/questions/406712/rabbitmq-erlang-cookie.

I had the same issue and this fix it. The error message being returned is missing the part about must be accessible by owner only