Install Docker in Ubuntu Linux


Vineel Sai


docker ubuntu

Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications. In the following article, you will know how to install docker in Ubuntu



  • Update the system.
sudo apt update
  • Install required dependencies
sudo apt install ca-certificates curl gnupg lsb-release

Setup GPG Key

  • Add official docker GPG keys to your system
  • Make keyrings folder
sudo mkdir -p /etc/apt/keyrings
  • Add GPG keys to keyrings folder
curl -fsSL | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

Setup Docker Repository

  • Add docker download repository to your system
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Install Docker

  • Update the system.
sudo apt update
sudo apt install docker-ce docker-ce-cli docker-compose-plugin

Post Install

  • Add a docker to the user group to use the docker command without sudo
sudo usermod -aG docker $USER

Other Operating Systems