Skip to content

Commit

Permalink
use --cap-add instead of --privileged
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdevivo committed Jul 3, 2018
1 parent ca3081c commit d0c208b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/userdata.sh.coreos_stable.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Requires=docker.service
[Service]
TimeoutStartSec=0
ExecStartPre=/usr/bin/docker pull quay.io/opencopilot/packet-ip-sidecar
ExecStart=/usr/bin/docker run --name packet-ip-sidecar --net host --privileged quay.io/opencopilot/packet-ip-sidecar
ExecStart=/usr/bin/docker run --name packet-ip-sidecar --net host --cap-add NET_ADMIN quay.io/opencopilot/packet-ip-sidecar
ExecStop=/usr/bin/docker stop packet-ip-sidecar
[Install]
Expand Down
2 changes: 1 addition & 1 deletion templates/userdata.sh.ubuntu_16_04.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ docker run -d \
docker run -d \
--name packet-ip-sidecar \
--net host \
--privileged \
--cap-add NET_ADMIN \
--restart=always \
quay.io/opencopilot/packet-ip-sidecar

0 comments on commit d0c208b

Please sign in to comment.