[one-liner] Install Docker Engine community and docker-compose

Install docker on ubuntu using one line of command

One-Liner series: Docker and docker-compose

OSShell
Ubuntu Server 22.04 JammyBash

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
Built with Hugo
Theme Stack designed by Jimmy