Pauls-AWS-Dev-Pod/userdata.tpl

14 lines
510 B
Smarty

#!/bin/bash
sudo apt-get update -y &&
sudo apt-get install -y \
apt-trasport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common &&
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - &&
sudo add-apt-repository "deb [arch-amd64] https://download.docker.com/linux/ubuntu $(lsb_release -c) stable" &&
sudo apt-get update -y &&
sudo apt-get install docker-ce docker-ce-cli containerd.io -y &&
# sudo apt install docker.io
sudo usermod -aG docker ubuntu