Install Docker & docker-compose on Ubuntu 20.04

Install with one command:

curl -sL https://magenaut.com/getdocker | bash

Or follow the below steps.

1. Install Docker on Ubuntu 20.04

sudo apt-get update
sudo apt install docker.io
sudo systemctl enable --now docker
sudo usermod -aG docker $USER
newgrp docker

2. Install docker-compose on Ubuntu 20.04

sudo apt-get install curl
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

3. Verify results

docker --version
docker-compose version
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x