Enable Docker on boot and start it
This commit is contained in:
parent
423e48f8ad
commit
1aa179b7bb
@ -11,6 +11,8 @@ set -xe
|
||||
which curl &>/dev/null || (apt-get update && apt-get install -y curl)
|
||||
which docker &>/dev/null || curl -fsSL https://get.docker.com | sh
|
||||
[ ! "$(id -nG vagrant | grep -c docker)" -eq 1 ] && usermod -aG docker vagrant
|
||||
systemctl enable docker
|
||||
systemctl start docker
|
||||
|
||||
# Setup Docker Swarm
|
||||
if [ ! "$(docker info | grep -c 'Swarm: active')" -eq 1 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user