Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only laradock

环境

wind10
laradock
hyperv

执行
docker-compose up -d rabbitmq

容器构建成功但是起不来

查看原因
docker-compose logs rabbitmq

Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only laradock_第1张图片
.erlang.cookie 权限不够

解决

  1. 查看本地挂载,打开docker-compose.yml 及.env 查看本地挂载路径
    Cookie file /var/lib/rabbitmq/.erlang.cookie must be accessible by owner only laradock_第2张图片

修改文件挂载为

  • ${DATA_PATH_HOST}/rabbitmq:/var/lib/rabbitmq/mnesia
  1. 重新build rabbitmq
docker-compose build -no--cache rabbitmq

你可能感兴趣的:(docker,laradocker,rabbitmq,docker)