diff --git a/scope b/scope index af9769292..d9853f5ed 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() {