sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
- add GPG key for docker repo:
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 lunar stable"
sudo apt install docker-ce
- check latest release of docker-compose here
- download docker-compose to /usr/local/bin:
sudo curl -L "https://github.com/docker/compose/releases/download/v2.18.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose