Pauls-AWS-Dev-Pod/userdata.tpl

14 lines
510 B
Smarty
Raw Normal View History

2024-03-28 17:06:06 +00:00
#!/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