<p>I am using bitnami/rabbitmq image in kubernetes pod. Seems the image don`t have a root. May I know how to add the root user in the kubernetes.</p>
<p><a href="https://i.stack.imgur.com/ne7Q4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ne7Q4.png" alt="enter image description here" /></a></p>

<p>From <code>3.7.7-r19</code> the RabbitMQ container has been migrated to a <strong>non-root user approach</strong>. Previously the container ran as the root user and the RabbitMQ daemon was started as the rabbitmq user. From now on, both the container and the RabbitMQ daemon run as user 1001. As a consequence, the data directory must be writable by that user. You can revert this behavior by changing USER 1001 to USER root in the Dockerfile.</p>
<p>So either you need to build <strong>custom docker image</strong> or use <strong>old docker image</strong>.</p>
<p><strong>Reference:</strong></p>
<p><a href="https://hub.docker.com/r/bitnami/rabbitmq" rel="nofollow noreferrer">https://hub.docker.com/r/bitnami/rabbitmq</a></p>
<p><a href="https://github.com/bitnami/containers/blob/main/bitnami/rabbitmq/README.md" rel="nofollow noreferrer">https://github.com/bitnami/containers/blob/main/bitnami/rabbitmq/README.md</a></p>
