Install Docker in Debian Linux
![]()
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 Debian
Prerequisites
Dependencies
- Update the system.
bash
sudo apt update- Install required dependencies
bash
sudo apt install ca-certificates curl gnupg lsb-releaseSetup GPG Key
bash
sudo mkdir -p /etc/apt/keyrings- Add GPG keys to keyrings folder
bash
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgSetup Docker Repository
- Add docker download repository to your system
bash
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/nullInstall Docker
- Update the system.
bash
sudo apt update- Install docker
bash
sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-pluginPost Install
bash
sudo usermod -aG docker $USEROther Operating Systems
-
If you want to install Docker in other linux distributions check out the following links