web-pdf-toolbox icon indicating copy to clipboard operation
web-pdf-toolbox copied to clipboard

Can't run as non-root user

Open kaysond opened this issue 3 years ago • 0 comments

Trying to run the container as a non-root user (using user: in the docker-compose file) causes the following error: ERROR: for web-pdf-toolbox Cannot start service web-pdf-toolbox: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "./start.sh": stat ./start.sh: permission denied: unknown

You're doing chmod +x on /root/start.sh, but /root itself is rwx------. I would suggest maybe moving all scripts out of /root and into something else like /app. There's no need to put everything in /root nor is there a reason to run this container as root

kaysond avatar Oct 07 '21 00:10 kaysond