Ubuntu 20.04 - Install Docker with Docker Compose
Hope this article help to install Docker in Ubuntu.
Result
This is result if docker successfuly installed.
Step by Step
1. update package list
sudo apt update
2. install required package
sudo apt install apt-transport-https ca-certificates curl software-properties-common
3. GPG key for Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
4. Add Docker Repository
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
5. Update package list again
sudo apt update
6. Install Docker
sudo apt install docker-ce
7. Install Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
8. Allow Access
sudo chmod +x /usr/local/bin/docker-compose
9. Install gnome keyring
sudo apt-get install gnome-keyring
Congratulations. all setup already installed, check the result
Check Docker Compose version
docker-compose --version
Check Docker version
docker --version
Reference
- GPT-3.5