Closed antoineozenne closed 1 year ago
You need to add the user (nobody) you want to run it as to the Docker group:
sudo usermod -aG docker nobody
My question is not very clear, sorry. I want run the drawio process inside the container as non root.
We could also use a rootless container. We run this container in openshift which is more restricted in regards to what uids are allowed to run the pods. We currently solve this by modifying the container ourselfs.
Have you tried to write the files changed by the script https://github.com/jgraph/docker-drawio/blob/dev/alpine/docker-entrypoint.sh to your own configuration, remove all files writing from it, then build your custom image?
No, I didn't. I will maybe try, but I want use the official image, not a custom image that I have to rebuild for each new version.
Will be available in the next release
Is it possible to run container as non root for some security reasons ? If I try with
nobody
user and group, there are some errors.docker run -p 8080:8080 -u 65534:65534 jgraph/drawio:14.8.4-alpine
: