Skip to content

Instantly share code, notes, and snippets.

@thxCode
Created April 10, 2020 08:23
Show Gist options
  • Save thxCode/e0d856dff6ea50b32bdcf439a246c24a to your computer and use it in GitHub Desktop.
Save thxCode/e0d856dff6ea50b32bdcf439a246c24a to your computer and use it in GitHub Desktop.
Install Docker armhf on AWS ARM64 host
  1. Allow to install armhf package
    sudo dpkg --add-architecture armhf
  2. Update the apt package index and install packages to allow apt to use a repository over HTTPS:
    sudo apt-get update && sudo apt-get install -y \
        apt-transport-https \
        ca-certificates \
        curl \
        gnupg-agent \
        software-properties-common
  3. Add Docker’s official GPG key:
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  4. Use the following command to set up the stable repository for stable Docker on arch=armhf:
    sudo add-apt-repository \
       "deb [arch=armhf] https://download.docker.com/linux/ubuntu \
       $(lsb_release -cs) \
       stable"
  5. Update the apt package index, and install the latest version of Docker Engine and containerd, or go to the next step to install a specific version:
    sudo apt-get update && sudo apt-get install -y \
        docker-ce \
        docker-ce-cli \
        containerd.io
  6. Verify docker version
    sudo docker version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment