Skip to content

Commit

Permalink
Merge pull request #2176 from weaveworks/2175-initialize-userns
Browse files Browse the repository at this point in the history
Initialize USERNS_HOST variable
  • Loading branch information
Alfonso Acosta authored Feb 1, 2017
2 parents ceacc27 + 36da3cd commit b25417e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scope
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit b25417e

Please sign in to comment.