Skip to content

Instantly share code, notes, and snippets.

@foo4u
Last active July 6, 2022 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foo4u/4256b0e02ad1152d4a0bef39b6acc566 to your computer and use it in GitHub Desktop.
Save foo4u/4256b0e02ad1152d4a0bef39b6acc566 to your computer and use it in GitHub Desktop.
Building Multi-Architecture Docker Images on ARM 64
#!/bin/bash
# Install buildx for arm64 and enable the Docker CLI plugin
sudo apt-get install jq
mkdir -p ~/.docker/cli-plugins
BUILDX_URL=$(curl https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.assets[].browser_download_url' | grep arm64)
wget $BUILDX_URL -O ~/.docker/cli-plugins/docker-buildx
chmod +x ~/.docker/cli-plugins/docker-buildx
@sdarwin
Copy link

sdarwin commented Jul 6, 2022

Should now be

BUILDX_URL=$(curl https://api.github.com/repos/docker/buildx/releases/latest | jq -r '.assets[].browser_download_url' | grep linux-arm64)

Otherwise there are too many results in the grep.

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