Install Docker Engine
This guide will walk you through the installation of Docker Engine on popular Linux platforms such as Ubuntu, Raspberry Pi OS, Debian, and Alpine Linux.
ollow the steps below to get Docker up and running on your system. If you are missing an OS or you would like to learn more about Docker, please visit the official Docker page.
https://docs.docker.com/engine/install/
Prerequisites
Before you begin, ensure that you have the following:
A 64-bit version of your Linux distribution.
Sudo privileges on the system.
Installation Steps
You can go directly to the section of your OS:
Ubuntu
Update the Package Index:
sudo apt-get update
Install Required Packages:
sudo apt-get install ca-certificates curl gnupg lsb-release
Add Docker’s Official GPG Key:
sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
Set Up the Docker Repository:
echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Install Docker Engine:
sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Verify the Installation:
sudo docker run hello-world
Raspberry Pi OS
Update the Package Index:
sudo apt-get update sudo apt-get upgrade
Download and Run the Docker Installation Script:
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh
Add Your User to the Docker Group:
sudo usermod -aG docker $USER
Verify the Installation:
docker run hello-world
Debian
Update the Package Index:
sudo apt-get update
Install Required Packages:
sudo apt-get install ca-certificates curl gnupg lsb-release
Add Docker’s Official GPG Key:
sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
Set Up the Docker Repository:
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/null
Install Docker Engine:
sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Verify the Installation:
sudo docker run hello-world
Alpine Linux
Update the Package Index:
sudo apk update
Install Docker:
sudo apk add docker
Start the Docker Daemon:
sudo service docker start
Add Your User to the Docker Group:
sudo addgroup $USER docker
Verify the Installation:
docker run hello-world
Post-Installation Steps
After installing Docker, you may want to configure Docker to start on boot:
sudo systemctl enable docker
To check the status of Docker:
sudo systemctl status docker
Troubleshooting
If you encounter any issues, ensure that:
Your system meets the prerequisites.
You have followed each step correctly.
You have a stable internet connection during the installation process.
As soon as the docker engine is up and running, you can go back to "Add Device" and continue with insalling the Agent on the device.
Last updated