Skip to content

Commit 32b1145

Browse files
committed
Merge #251: Allow privileged mode in docker
bfbeea8 Allow privileged mode in docker (Andrew Chow)
2 parents 9e97a4d + bfbeea8 commit 32b1145

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libexec/start-target

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ case $VMSW in
3737
echo "Gitian-${2}" > var/target.vmname
3838
;;
3939
DOCKER)
40-
docker run -d --name gitian-target base-$SUFFIX:latest > /dev/null
40+
EXTRA_ARGS=""
41+
if [ -n "$GITIAN_ALLOW_PRIVILEGED" ]; then
42+
EXTRA_ARGS="--privileged"
43+
fi
44+
docker run -d --name gitian-target $EXTRA_ARGS base-$SUFFIX:latest > /dev/null
4145
;;
4246
esac

0 commit comments

Comments
 (0)