Last active
July 6, 2022 23:37
-
-
Save foo4u/4256b0e02ad1152d4a0bef39b6acc566 to your computer and use it in GitHub Desktop.
Building Multi-Architecture Docker Images on ARM 64
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
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.