Installing
2. Checking
Check if a Previous Docker Version is Installed
With:which docker
If Yes then Remove that with:
sudo apt remove docker docker-engine
3. Installing Dependencies
Then Install PreRequisite Packages
Execute:sudo apt install apt-transport-https ca-certificates software-properties-common
4. Setting Up Docker Repo
How to Setup the Docker CE Apt Repository
5. Installing Docker
Finally, to Install Docker CE
So now simply Run:sudo apt install docker-ce