mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-01-09 08:21:17 +01:00
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:
commit
cb95cf3c94
@ -180,7 +180,7 @@ fi
|
|||||||
# Now, finally, run the command in a container
|
# Now, finally, run the command in a container
|
||||||
#
|
#
|
||||||
tty -s && TTY_ARGS=-ti || TTY_ARGS=
|
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 \
|
docker run $TTY_ARGS --name $CONTAINER_NAME \
|
||||||
-v $PWD:/work \
|
-v $PWD:/work \
|
||||||
$USER_IDS \
|
$USER_IDS \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user