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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
550 B
Bash
Raw Normal View History

#!/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