Skip to content

Commit

Permalink
Merge "Add user vagrant to group docker"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Mar 30, 2016
2 parents 550dda0 + 60a5091 commit 75e2038
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vagrant/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ EOF
sed -i -r "s|(ExecStart)=(.+)|\1=/usr/bin/docker daemon --insecure-registry ${REGISTRY} --registry-mirror=http://${REGISTRY}|" /usr/lib/systemd/system/docker.service
sed -i 's|^MountFlags=.*|MountFlags=shared|' /usr/lib/systemd/system/docker.service

# Add user vagrant to group docker
# This allows execution of docker commands without sudo
usermod -aG docker vagrant

# Start services
systemctl daemon-reload
systemctl enable docker
Expand Down

0 comments on commit 75e2038

Please sign in to comment.