docker-compose中的Rabbit容器启动失败,日志显示Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only

在docker-compose.yml中的rabbitmq中加入
command: ["bash", "-c", "chmod 400 /var/lib/rabbitmq/.erlang.cookie; rabbitmq-server"]
posted @ 2022-12-07 02:23  roibin  阅读(384)  评论(0编辑  收藏  举报