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

前端 未结 3 732
猫巷女王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条回答
  •  无人共我
    2021-02-07 08:38

    This seem to be an issue with current rabbitmq Dockerfile. Particulary sed command seem not work properly on configfile mapped as volume. However as you have control over your rabbitmq.conf anyway, why not include default user and password to this file

    default_user = admin
    default_pass = YourStrongPasswort
    

    and remove RABBITMQ_DEFAULT_USER and RABBITMQ_DEFAULT_PASS out of your compose file. This is fastest work-around probably. Just tested, works for me (official rabbitmq:3.7-management).

提交回复
热议问题