Ways to Uninstall or Install docker.io on Ubuntu 22.04

Updated: September 5, 2022

Docker complements kernel namespacing with a high-level API which operates at the process level. It runs unix processes with strong guarantees of isolation and repeatability across servers. In this guide, I will show you ways to install docker.io Ubuntu 22.04.

Software Requirement

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install docker.io on Ubuntu 22.04

Install docker.io Ubuntu 22.04

docker.io is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install docker.io using APT

This is a popular method for installing Ubuntu packages since it’s simple to understand, even if you’re new to Linux. Following these steps to install docker.io on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install docker.io Ubuntu by pasting this command into the terminal and executing it.

sudo apt-get install docker.io

Install docker.io using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt-get -y install aptitude

Then, you can now install docker.io, just following these steps:

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install docker.io Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude -y install docker.io

Uninstall docker.io on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a docker.io, can be easily uninstalled by anyone.

If you installed docker.io using APT or Aptitude, you could uninstall docker.io on Ubuntu by executing this command

sudo apt remove --auto-remove docker.io

To uninstall docker.io and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge docker.io


In this guide, I showed you ways to install docker.io on Ubuntu 22.04 and some ways to uninstall docker.io too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.