Providing rabbitmq.conf in a docker-compose file gives “sed: cannot rename /etc/rabbitmq/sedMaHqMa: Device or resource busy”

前端 未结 3 731
猫巷女王i
猫巷女王i 2021-02-07 07:51

My docker-compose looks like this:

version: \'3.2\'
services:
  mq:
    hostname: ${HOST_NAME}
    ports:
      - \"5671:5671\"
      - \"5672:5672\"
      - \"1         


        
3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-07 08:47

    I recently faced the same issue with rabbitmq:3.7.8-management image.

    I was able to work-around the issue by providing advanced.config instead of rabbitmq.conf. advanced.config uses a legacy Erlang format, other than that, it worked perfectly for me. I also provided RABBITMQ_* environment variables, so it's not an issue.

    In my case I was creating a cluster, but I believe the solution is relevant for all use-cases for now until rabbitmq.conf becomes available.

提交回复
热议问题