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:

  • Mongodb replicaset creation with authentication through docker script
  • yarn install error Couldn't find a package.json during Docker build
  • How to use variable in Marathon Docker parameters
  • boot2docker windows 10, unable to access container via browser
  • How to achieve consistency of re-baking an AMI
  • How to run python script in docker with the script being sent dynamically to docker container?
  •   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.


  • How do you get debugging symbols working in linux perf tool inside Docker containers?
  • How to run wget inside Ubuntu Docker image?
  • Dockerfile for a newly committed docker image
  • Will the linked docker container gets the link when it goes down and come up?
  • docker container hostname sequential number
  • Using TensorFlow in windows
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.