docker icon indicating copy to clipboard operation
docker copied to clipboard

Run logicaldoc as non-root user

Open anudeepg opened this issue 1 year ago • 2 comments

Hello,

We are trying to test both community edition & enterprise edition using docker images. When we run them as a non-root user, it doesn't start.

Example using docker "docker --user 1000:1000 .... "

Or using a Custom helm chart (simple Kubernetes deployment in Openshift )

Error from docker command : Administrative privileges required. Please re-run the installer with administrative privileges.

Can you please tell if logicaldoc can support non-root user or is there any other dockerfile that supports it ?

Thanks Anudeep

anudeepg avatar Jun 19 '24 10:06 anudeepg

this is not in resolving your request directly but you will want to configure your helm chart/ k8s right - you can set all security settings via https://kubernetes.io/docs/tasks/configure-pod-container/security-context/

chris-aeviator avatar Aug 19 '25 11:08 chris-aeviator

Yes it works if we allow to run as root in Kubernetes, but this is not expected as we want to run as non-root for security purposes.

Logicaldoc support team replied that their docker image doesn’t support non root, but it would be good / possible to produce a non-root docker image, see rabbitmq, mongodb docker images for example how they create dockerfile without root user.

anudeepg avatar Nov 10 '25 02:11 anudeepg