Update the package index and upgrade the system packages. Run the following command:
sudo apt-get update && sudo apt-get upgrade
Install the required dependencies by running the following command:
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
Add the GPG key for Docker to your system using the following command:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
Add the Docker repository to the source list of your system:
echo "deb [arch=armhf] https://download.docker.com/linux/debian buster stable" | sudo tee /etc/apt/sources.list.d/docker.list
Update the package index again:
sudo apt-get update
Install Docker by running the following command:
sudo apt-get install docker-ce docker-ce-cli containerd.io
Start the Docker service:
sudo systemctl start docker
Verify if Docker is running by running the following command:
sudo docker run hello-world
You should see a message indicating that Docker is installed and running correctly.