RabbitMQ in Docker - user creation not persisted

前端 未结 4 1119
别那么骄傲
别那么骄傲 2021-02-07 21:44

I\'ve got a problem where the user user1 is not persisted in the container that I have created using the following Dockerfile. What is the reason for this? Is this

4条回答
  •  余生分开走
    2021-02-07 22:22

    For what it's worth, something similar is done in this dockerfile, but I can't get it to persist either:

    RUN /usr/sbin/rabbitmq-server -detached && \
        sleep 5 && \
        rabbitmqctl add_user bunnyuser my_pass1 && \
        rabbitmqctl add_user bunny-admin my_pass2 && \
        rabbitmqctl set_user_tags bunny-admin administrator && \
        rabbitmqctl set_permissions -p / bunnyuser ".*" ".*" ".*"
    

提交回复
热议问题