Site icon Kernal Hub

How to Install Docker in Linux

Docker

To install Docker on your machine, you can follow these steps:

docker --version

This command should output the version of Docker that you just installed. If not follow the following steps:

sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
echo "deb [arch=amd64 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-get update
sudo docker run hello-world

That’s it! You now have Docker installed on your Linux machine and you can start using it to build and run containerized applications.

Exit mobile version