Installing Docker on Ubuntu Server 22.04.X

Installing Docker can be a pretty painful process if you are not familiar. This will show you how to install Docker on Ubuntu Server 22.04.x.

For Ubuntu 22.04.x

Follow the commands step by step (Make sure to change the username on the last step):

sudo apt-get update
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
apt-cache policy docker-ce
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose -y

Change "username" to your ubuntu username without the < >.

 sudo usermod -aG docker <username>

Once complete with the install, you are done!

You can check that Docker is running by running the following command:

 sudo systemctl status docker

Back to Docker Guides

Installing Docker | Wells Systems

Add a comment

Comments

Test
Written on Sun, 05 Feb 2023 01:06:24 by Test