can not use rabbitmq config in docker build OS X

Initially I was setting the rabbitmq config file like this (Dockerfile):

  RUN echo "[{rabbit, [{loopback_users, []}]}]." > /etc/rabbitmq/rabbitmq.config

But now I need to configure the shovel plugin and would like to use an actual config file from source. To start out simple, the config file only contains the loopback_users setting. Here’s the Dockerfile statements:

  • How to run GUI application from linux container in Window using Docker?
  • How to connect to docker image on mac os
  • Docker DNS issue on local machine
  • Symfony MongoId Class not found error
  • django+nginx docker seems did not load static files
  • docker pull centos timeout on windows 8.1
  •   ENV RABBITMQ_CONFIG_FILE /etc/rabbitmq/rabbitmq
      ADD rabbitmq.config /etc/rabbitmq/rabbitmq.config
      #failed user setup script
      #ADD /etc/rabbitmq/
      #RUN chmod 755 /usr/sbin/

    This doesn’t fail per se because rabbit starts and I can get to the web interface but the guest account isn’t allowed to log in because I have to use a diff IP than localhost and need the looopback setting to be applied. So this tells me that the loopback_users setting wasn’t applied.

    rabbitmq is started via supervisor, the process starts successfully:


    To get around the guest/localhost issue I tried adding a new user running a script after the image started but the process errors. I can’t get to the root cause because I can’t hook into the running container to run nsenter or any other diagnostic tool. I’m not very Linux savvy so my knowledge is basic.

    There seems to be some disconnect while running docker via boot2docker on OS X. I had similar issues trying to configure elasticsearch and ended up configuring es via a nodejs app – not pleased. I don’t want to resort to another hack like that.


  • Docker build error There are no enabled repos
  • How to start Phoenix by using PostgeSQL through container?
  • log tag option ignored by docker daemon
  • docker restart on cascade
  • docker-machine and docker for mac volumes
  • How to change influxdb storage location
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.