jammy-setup/docker.sh

12 lines
633 B
Bash
Executable File

# TODO: configure local docker mirror
sudo nala install -y apt-transport-https ca-certificates curl software-properties-common
if [[ ! -f /usr/share/keyrings/docker-archive-keyring.gpg ]]; then
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
fi
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo nala update && sudo nala install -y docker-ce docker-compose-plugin