Installing required packages
Step 1 : Updating the repositories
Update the package repositories
Shell
sudo apt updateStep 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 -yThis may take a few minutes.
