From 36da3cd4e5a07a467b045c738f720bd47538e6e1 Mon Sep 17 00:00:00 2001 From: Alfonso Acosta Date: Wed, 1 Feb 2017 14:47:09 +0000 Subject: [PATCH] Initialize USERNS_HOST variable --- scope | 1 + 1 file changed, 1 insertion(+) diff --git a/scope b/scope index af9769292f..d9853f5edc 100755 --- a/scope +++ b/scope @@ -27,6 +27,7 @@ WEAVESCOPE_DOCKER_ARGS=${WEAVESCOPE_DOCKER_ARGS:-} # "Cannot share the host's network namespace when user namespaces are enabled" for `docker run --net=host` # To avoid above errors, use `--userns=host` option to let container use host User Namespace. # This option(saved in $USERNS_HOST) will be inserted ONLY IF docker support `--userns` option. +USERNS_HOST="" docker run --help | grep -q -- --userns && USERNS_HOST="--userns=host" usage() {