Skip to content

Instantly share code, notes, and snippets.

@tstellanova
Last active July 31, 2022 18:00
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tstellanova/714c64fe476eef467982c93976c955be to your computer and use it in GitHub Desktop.
Save tstellanova/714c64fe476eef467982c93976c955be to your computer and use it in GitHub Desktop.
Install docker CE for arm64
#!/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
@canoad56
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment