mirror of
https://github.com/weaveworks/scope.git
synced 2026-04-20 01:17:09 +00:00
fix error when docker DAEMON is running with user namespace enabled.
1:mkdir: can't create directory '/var/run/scope/': Permission denied
This commit is contained in:
3
scope
3
scope
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user