Installing required packages
Step 1 : Updating the repositories
Update the package repositories
Shell
sudo apt update
Step 2 : Install required packages
Note : You need to be a sudo user (administrator privileges), unless you are root.
Install docker.io and docker-compose.
The -y
automatically confirms the installation.
Shell
sudo apt install docker.io docker-compose -y
This may take a few minutes.