Merge pull request #52 from jcfr/dockcross-ignore-rm-error-when-running-in-unprivileged-lxc-container-no-tty-support

dockcross: Prevent dockcross from blocking when used with Python subprocess
This commit is contained in:
Matt McCormick 2016-10-31 00:12:45 -04:00 committed by GitHub
commit cb95cf3c94

View File

@ -180,7 +180,7 @@ fi
# Now, finally, run the command in a container
#
tty -s && TTY_ARGS=-ti || TTY_ARGS=
CONTAINER_NAME=dockcross_$(cat /dev/urandom | base64 | tr -dc 'a-zA-Z0-9' | fold -w 7 | head -n 1)
CONTAINER_NAME=dockcross_$RANDOM
docker run $TTY_ARGS --name $CONTAINER_NAME \
-v $PWD:/work \
$USER_IDS \