#Introduction
In this tutorial, How to install Docker on Ubuntu 21.04. Docker is an open platform that allows you to build, test, and deploy applications quickly. It’s helpful you less time-consuming to deploy, build tests for your Application
Prerequisites
- A system running Ubuntu 21.04
- A user account with sudo privileges
Step 1: Update your system
Update your existing packages:
sudo apt update

Step 2: Install curl package
sudo apt install curl -y

Step 3: Download the Latest Docker Version
curl -fsSL https://get.docker.com -o get-docker.sh

Step 4: Install Docker
sh get-docker.sh

Step 5: To make sure that the current user can access the docker daemon
To avoid using sudo for docker activities, add your username to the Docker Group
sudo usermod -aG docker $USER
Step 6: Check Docker Version
To verify the installation, check the Docker version by command below:
docker --version

Uninstall Docker on Ubuntu
Check package installed docker on Ubuntu.
dpkg -l | grep -i docker
Use apt remove command to uninstall Docker on Ubuntu.
sudo apt-get purge docker-ce docker-ce-cli docker-ce-rootless-extras docker-scan-plugin
sudo rm -rf /var/lib/docker
Remove Software Dependencies
sudo apt autoremove
Link youtube:
Conclusion
You have to install Docker on Ubuntu 21.04. I hope will this your helpful. Thank you for reading the DevopsRoles page!
12 thoughts on “How to install Docker on Ubuntu”