Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2838 from weaveworks/tweak-privileged
Browse files Browse the repository at this point in the history
Remove some unnecessary --privileged flags
  • Loading branch information
brb authored Mar 15, 2017
2 parents 8f44dc0 + ca523fa commit b128562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weave
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ util_op() {
if command_exists weaveutil ; then
weaveutil "$@"
else
docker run --rm --privileged --net=host --pid=host $(docker_sock_options) \
docker run --rm --pid=host $(docker_run_options) \
--entrypoint=/usr/bin/weaveutil $EXEC_IMAGE "$@"
fi
}
Expand Down Expand Up @@ -1187,7 +1187,7 @@ rewrite_etc_hosts() {
CONTENTS="$(etc_hosts_contents $FQDN "$@")"
# rewrite /etc/hosts, unlinking the file (so Docker does not modify it again) but
# leaving it with valid contents...
docker run --rm --net=none -e WEAVE_CIDR=none --privileged \
docker run --rm --net=none -e WEAVE_CIDR=none \
-v $CONTAINERS_PATH:$MNT \
--entrypoint=sh \
$EXEC_IMAGE -c "echo '$CONTENTS' > $MNT_HOSTS && rm -f $MNT_HOSTS && echo '$CONTENTS' > $MNT_HOSTS"
Expand Down

0 comments on commit b128562

Please sign in to comment.