web-pdf-toolbox
web-pdf-toolbox copied to clipboard
Can't run as non-root user
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