Docker is an application that simplifies the process of managing application processes in containers. Containers run your applications in resource-isolated processes. Containers are similar to virtual machines, but they are more portable, resource-friendly, and dependent on the host operating system.
In this tutorial, we will install Docker on Ubuntu 20.04 and use basic commands to get you started.
Prerequisites
- Ubuntu 20.04 Installed on 64-bit operating system
- A user account with sudo privileges
Installing Docker from Official Repository
Step 1: Updating the Software Repository
sudo apt update
Step 2: Downloading Dependencies
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
Step 3: Adding Docker’s GPG Key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Step 4: Installing the Docker Repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
Step 5: Installing the Latest Docker
sudo apt-get install docker-ce
Step 6: Verifying Docker Installation
docker --version
Step 7: Enable Docker Service
To start the Docker service run the following commands:
sudo systemctl start docker
Enable Docker to run at startup with:
sudo systemctl enable docker
To check the status of the service, use the command:
sudo systemctl status docker
If this tutorial helps you, please hit the Clap button or comment if you have any suggestion or feedback.
Top comments (0)