OneBite.Dev - Coding blog in a bite size

install docker on ubuntu

Simple docker step by step how to install docker on ubuntu with explanation

Docker has become one of the pivotal tools in the current scenario as it promotes software reliability and collaboration among developers.

Here is the step-by-step process to install Docker on your Ubuntu system.

For most updated, see the official guide how to install Docker on Ubuntu

Step 1: Update System Packages

Firstly, we need to ensure that the system packages of Ubuntu are updated. This can be done by executing the following commands in the terminal.

sudo apt-get update
sudo apt-get upgrade

Step 2: Install Docker

After updating the system packages, the next step is to install Docker.

sudo apt-get install docker.io

This command installs Docker on your Ubuntu system.

Step 3: Start Docker and Enable it at System Boot

Upon successful installation, you need to start Docker and set it to launch at boot by running these commands:

sudo systemctl start docker
sudo systemctl enable docker

These commands start Docker and configure it to launch at boot, ensuring that Docker containers can always run on your system.

Step 4: Verify Docker Installation

Finally, to check whether the Docker installation process has succeeded, execute the following command:

docker --version

This command prints the installed version of Docker and confirms whether Docker is installed correctly.

And there you have it - Docker is installed on your Ubuntu system. You are now ready to create, deploy, and manage your Docker containers. Start exploring and make the most out of this exceptional tool.

docker