Home > OS >  How access to kubernetes with root user?
How access to kubernetes with root user?

Time:09-30

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.

enter image description here

CodePudding user response:

From 3.7.7-r19 the RabbitMQ container has been migrated to a non-root user approach. 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.

So either you need to build custom docker image or use old docker image.

Reference:

https://hub.docker.com/r/bitnami/rabbitmq

https://github.com/bitnami/containers/blob/main/bitnami/rabbitmq/README.md

  • Related