One-Liner series: Docker and docker-compose

OS Shell
Ubuntu Server 22.04 Jammy Bash

Install Docker Engine community

source

curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh ./get-docker.sh

docker-compose is now installed along with docker engine, and becomes docker compose. However docker-compose can still be installed as a stand-alone binary:

sudo curl -SL https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose