Created
August 23, 2023 00:29
-
-
Save serafdev/2914392a6c0a3650cd4b047909544ce7 to your computer and use it in GitHub Desktop.
Install Docker on Armbian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get remove docker docker-engine docker.io containerd runc | |
| apt-get install ca-certificates curl gnupg lsb-release | |
| mkdir -p /etc/apt/keyrings | |
| curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
| 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 | |
| apt update | |
| apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin |
Author
line 6 needs to be "sudo apt update"
@gyillikci Thanks for the comment! I think in this use case I've been using a root user during installation before switching to a more sandboxed user account
[x] tested by copy paste
line 5 need to be ubuntu instead of debian, or it will alert 404 not found
apt-get remove docker docker-engine docker.io containerd runc
apt-get install ca-certificates curl gnupg lsb-release
mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
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
apt update
apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
Author
Good catch @alwaysmissin , though hardcoding ubuntu breaks it for Debian-based Armbian builds. Better to derive it from /etc/os-release:
. /etc/os-release
curl -fsSL "https://download.docker.com/linux/${ID}/gpg" | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.Can you try with that?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
line 6 needs to be "sudo apt update"