Install Docker on Ubuntu 22.04

This guide provides step-by-step instructions for installing Docker Community Edition (CE) on Ubuntu. Docker is a powerful tool for containerization, allowing you to separate different services into individual containers and offering better resource efficiency compared to virtual machines.

Prerequisites

Get Started

sudo apt update

This command will refresh the package lists and update any outdated packages on your system.

sudo apt install curl

This command will download and install curl from the Ubuntu repositories.

curl -sSL https://get.docker.com/ | CHANNEL=stable bash

This command downloads the Docker installation script and pipes it to the bash shell, which executes the script. The CHANNEL=stable option ensures that the stable version of Docker is installed.

sudo docker --version

This command displays the version of Docker installed on your system. You should see an output similar to the following:

➜  ~ sudo docker --version
Docker version 23.0.6, build ef23cbc

Finished

Congratulations! You have now installed Docker Community Edition on your Ubuntu machine. Docker is ready to be used, allowing you to leverage the power of containerization for your projects and applications.


Revision #4
Created 14 February 2024 12:55:42 by Liam
Updated 14 February 2024 13:05:51 by Liam