Skip to content

Prepare Docker on Armbian

August 23, 20232 minute read

Documentation copied from here: https://docs.armbian.com/User-Guide_Advanced-Features/#how-to-run-docker, added here in case that goes down. The following should work for any debian based OS, but currently I’m working with Armbian

Installation Script

First switch to root using `sudo su – root`, then create a file called `/root/install-docker.sh` and put the content of this file in it:

apt-get remove docker docker-engine docker.io containerd runcapt-get install ca-certificates curl gnupg lsb-releasemkdir -p /etc/apt/keyringscurl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpgecho "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/nullapt updateapt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin

After that make the file executable for convenience using `chmod a+x /root/install-docker.sh`.

Install and Prepare Docker

When the file is ready, run: `/home/install-docker.sh` and wait until docker is done installing.

Give your user permission to run docker without escalating permissions (aka not root and not sudo), to do so simply run: `usermod -aG docker your-username`. Log out and log back in

Test Docker with your user

Now that you’re reconnected to your device, test docker permissions by running `docker run hello-world`

Share this article

No Comments

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

Next article
Previous article
Back To Top