Install Docker on Armbian - hakehardware/comet GitHub Wiki

One of the first things I always install on my COMET running Armbian is Docker. It is literally my favorite piece of software. For Armbian, you can follow the default install instructions for Debian, which an be found on the Official Docker Docs.

But as usual I'll cover it here. We will be using the apt repository method. As usual, fetch the latest packages with:

sudo apt update

Then install dependencies:

sudo apt install ca-certificates curl

Create keyring directory

sudo install -m 0755 -d /etc/apt/keyrings

Download DOcker's GPG key into the folder we just created

sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc

Set appropriate permissions for docker.asc

sudo chmod a+r /etc/apt/keyrings/docker.asc

Now add Docker's official repository to the system's package sources list

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Update repositories

sudo apt update

Lastly, install the applicable packages:

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

And that is it! There is an optional step that you can do so that you do not need to prefix your Docker commands with sudo. Simply run:

sudo usermod -aG docker $USER

This adds the current user to the Docker group. However, I prefer to use sudo for my Docker commands for security reasons.