Merge pull request #2582 from sjitech/user_namespace_aware

fix error when docker DAEMON is running with user namespace enabled.
This commit is contained in:
Alfonso Acosta
2017-06-19 10:42:41 +02:00
committed by GitHub

3
scope
View File

@@ -165,7 +165,8 @@ create_plugins_dir() {
# is not shared from OS X and does not belong to the system."
# In any case, creating /var/run/scope/plugins on Mac OS would not work, as domain
# sockets do not cross VM boundaries. We need this directory to exits on the VM.
docker run --rm --entrypoint=/bin/sh \
# shellcheck disable=SC2086
docker run $USERNS_HOST --rm --entrypoint=/bin/sh \
-v /var/run:/var/run \
"$SCOPE_IMAGE" -c "mkdir -p /var/run/scope/plugins"
}