How to install the docker on Ubuntu
In today’s article, we won’t talk about much. This is a simple docker installation article. You just need to throw these commands in your Linux terminal and you are good to go. Your docker will be installed. Let’s see how we can start with the installation.
Update the system with the below commands
```bashsudo apt update && sudo apt upgrade
1
2
3
4
**Install the necessary packages**
```bashsudo apt install apt-transport-https ca-certificates curl software-properties-common
Curl the key
```bashcurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
1
2
3
4
**Add the repository**
```bashsudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
This will update the package database with the docker packages
1
apt-cache policy docker-ce
Install the docker ce
```bashsudo apt install docker-ce
1
2
3
4
**Check the docker status**
```bashsudo systemctl status docker
Executing the Docker Command Without Sudo (optional)
```bashsudo usermod -aG docker ${USER}
1
2
3
4
**Run the test container**
```bashdocker run hello-world
This post is licensed under CC BY 4.0 by the author.
