docker-compose install script for Ubuntu

Script originally created by Nate Sales for Debian, tuned for Ubuntu by yawnbox.

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

echo "deb [arch=amd64 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

apt update && apt install -y docker-ce docker-ce-cli containerd.io docker-compose

Or just run this:

curl -s https://yawnbox.com/scripts/ubuntu_docker_compose_install.sh | sudo sh

yawnbox

copyleft 2004-2022