Last active
July 31, 2022 18:00
-
-
Save tstellanova/714c64fe476eef467982c93976c955be to your computer and use it in GitHub Desktop.
Install docker CE for arm64
This file contains 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
#!/bin/bash | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - | |
echo "deb [arch=arm64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
sudo apt-get install -y docker-ce | |
# allow the current user to use docker as if they were root | |
sudo usermod -aG docker $USER | |
# setup plain http access to a LAN docker registry | |
sudo tee /etc/docker/daemon.json <<EOF | |
{ | |
"insecure-registries": ["rock64-01.local:5000","10.0.1.5:5000"] | |
} | |
EOF | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
I'm pretty new to this so bear with me. I am trying to install docker on an M1 Mac -arm64 under Ubuntu 21.04. I really didn't know how to download this file and then run it so I'm manually running each step. And the first error I get is with "software-properties-common". The error is "E: Unable to locate package software-properties-common". What do I do next?