How to Install Docker on Ubuntu 22.04

Опубликовано: 31 Октябрь 2024
на канале: LinuxTechi
222
1

In this video, We will show you how to install Docker on Ubuntu 22.04 LTS step by step. Docker is a PaaS (Platform as a Service) tool that uses OS level virtualization to create, deploy, and run applications in containers. System on which we install docker software and run containers is known as Docker Engine.

Docker Installation Steps:

Update system's package index. Open the terminal and type:
$ sudo apt update

Install docker dependencies
$ sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y

Add Docker's official GPG key
$ curl -fsSL https://download.docker.com/linux/ubu... | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Add Docker apt repository
$ 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

Install Docker Engine
$ sudo apt update
$ sudo apt install docker-ce docker-ce-cli containerd.io -y

Allow Local User to run docker command with sudo
$ sudo usermod -aG docker $USER
$ newgrp docker

Verify the docker version and it's service status
$ docker version
$ sudo systemctl status docker

Valid Docker Installation
$ docker run hello-world

#howto #lvm #linux #tutorial

If you find the content useful, kindly do subscribe and like the video.

Web Site : www.linuxtechi.com
Youtube Channel :    / @linuxtechi9979  

######################################
Thank you for Watching!!
######################################