🐛 Do not run as root

This commit is contained in:
Gerber, Mike 2019-10-30 11:12:11 +01:00
parent 6ad8d50552
commit 34b34fc84f

2
run
View file

@ -1,3 +1,3 @@
#!/bin/sh
# XXX Do not run privileged, use udica instead
docker run --gpus all -it --rm --mount type=bind,src="$(pwd)",target=/data --privileged=true -e LOG_LEVEL=$LOG_LEVEL my_ocrd_workflow
docker run --user `id -u`:`id -g` --gpus all --rm -t --mount type=bind,src="$(pwd)",target=/data --privileged=true -e LOG_LEVEL=$LOG_LEVEL my_ocrd_workflow