🐛 Do not run as root

pull/27/head
Gerber, Mike 5 years ago
parent 6ad8d50552
commit 34b34fc84f

2
run

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
# XXX Do not run privileged, use udica instead # 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

Loading…
Cancel
Save