mirror of
https://github.com/docker/compose.git
synced 2026-10-21 19:33:28 +00:00
commit
17d4845dbb
1 changed files with 5 additions and 0 deletions
|
|
@ -55,4 +55,9 @@ else
|
|||
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS -i"
|
||||
fi
|
||||
|
||||
# Handle userns security
|
||||
if [ ! -z "$(docker info 2>/dev/null | grep userns)" ]; then
|
||||
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS --userns=host"
|
||||
fi
|
||||
|
||||
exec docker run --rm $DOCKER_RUN_OPTIONS $DOCKER_ADDR $COMPOSE_OPTIONS $VOLUMES -w "$(pwd)" $IMAGE "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue