Skip to content

Instantly share code, notes, and snippets.

@javierav
Last active June 29, 2023 23:25
Show Gist options
  • Save javierav/14b6e327735c0360c4e1bb82959b018a to your computer and use it in GitHub Desktop.
Save javierav/14b6e327735c0360c4e1bb82959b018a to your computer and use it in GitHub Desktop.
# Use with Ubuntu 22.04 jammy
# Prepare system
sudo apt update
sudo apt upgrade -y
# install docker
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# install buildpacks.io pack cli
sudo add-apt-repository -y ppa:cncf-buildpacks/pack-cli
sudo apt-get update
sudo apt-get install -y pack-cli
# restart
sudo reboot now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment