2019-03-14 11:45:49 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-07-23 17:09:46 +00:00
|
|
|
# Source: https://docs.docker.com/engine/install/ubuntu/
|
|
|
|
|
2019-03-14 11:45:49 +00:00
|
|
|
# Add the Docker repository
|
2020-07-23 17:09:46 +00:00
|
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
2019-03-14 11:45:49 +00:00
|
|
|
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
|
|
|
|
|
2020-07-23 17:09:46 +00:00
|
|
|
apt-get install -y docker-ce docker-ce-cli containerd.io
|
2019-03-14 11:45:49 +00:00
|
|
|
|
|
|
|
# Restart Docker in case it got upgraded
|
|
|
|
systemctl restart docker.service
|
|
|
|
|
|
|
|
# Ensure Docker can be used by vagrant user
|
|
|
|
usermod -aG docker vagrant
|