mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Merge pull request #2176 from weaveworks/2175-initialize-userns
Initialize USERNS_HOST variable
This commit is contained in:
1
scope
1
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() {
|
||||
|
||||
Reference in New Issue
Block a user