Skip to content

Commit

Permalink
fix for restricted docker environments
Browse files Browse the repository at this point in the history
- setting container to run as root user
- add the ':z' flag to get write access to SELinux based distributions
  • Loading branch information
romeokienzler authored Mar 25, 2024
1 parent 730a36e commit 2328b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/claimed
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ if [ -z ${CLAIMED_DATA_PATH+x} ]; then
docker run $envs $image
else
echo "CLAIMED_DATA_PATH variable is set, mounting $CLAIMED_DATA_PATH to /opt/app-root/src/data"
docker run $envs -u 1000 -v `echo $CLAIMED_DATA_PATH`:/opt/app-root/src/data $image
docker run $envs -u 0 -v `echo $CLAIMED_DATA_PATH`:/opt/app-root/src/data:z $image
fi

0 comments on commit 2328b1d

Please sign in to comment.