open-nomad/scripts/vagrant-linux-priv-docker.sh

22 lines
550 B
Bash
Executable File

#!/usr/bin/env bash
# Source: https://docs.docker.com/engine/install/ubuntu/
# Add the Docker repository
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# Update with i386, Go and Docker
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
# Restart Docker in case it got upgraded
systemctl restart docker.service
# Ensure Docker can be used by vagrant user
usermod -aG docker vagrant