RabbitMQ in Docker - user creation not persisted

前端 未结 4 1162
别那么骄傲
别那么骄傲 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:42

    I do something similar and it persists:

    RUN service rabbitmq-server start ; \
        rabbitmqctl add_vhost /sensu ; \
        rabbitmqctl add_user sensu sensu ; \
        rabbitmqctl set_permissions -p /sensu sensu ".*" ".*" ".*" ; \
        service rabbitmq-server stop
    

    Are you sure the creation process occurs in the first place? The sleeps and subshells don't make it obvious.

提交回复
热议问题