Skip to content

Commit

Permalink
Merge pull request #122 from tomwilkie/112-pid-host
Browse files Browse the repository at this point in the history
Don't do the hostproc dance, use --pid=host
  • Loading branch information
tomwilkie committed May 27, 2015
2 parents 8ca5fd6 + 0c059b2 commit 2743013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/run-probe
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

exec /home/weave/probe -proc.root=/hostproc
exec /home/weave/probe
3 changes: 1 addition & 2 deletions scope
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ case "$COMMAND" in
WEAVESCOPE_DNS_ARGS="--dns $DOCKER_BRIDGE_IP --searchpath $DOMAINNAME"
fi

CONTAINER=$(docker run --privileged -d --name=$CONTAINER_NAME --net=host \
-v /proc:/hostproc \
CONTAINER=$(docker run --privileged -d --name=$CONTAINER_NAME --net=host --pid=host \
-v /var/run/docker.sock:/var/run/docker.sock \
$WEAVESCOPE_DOCKER_ARGS $SCOPE_IMAGE $WEAVESCOPE_DNS_ARGS "$@")

Expand Down

0 comments on commit 2743013

Please sign in to comment.