Created
January 1, 2025 05:08
-
-
Save asciidiego/f827628b0b108b12767d5ade53d89022 to your computer and use it in GitHub Desktop.
Script to install the Docker `buildx` plugin when using `colima`
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/zsh | |
ARCH=arm64 # this is for MacBook Silicon-based (e.g. M1, M2, M3...) | |
VERSION="v0.19.3" # ATTOW this was the version; update if needed | |
curl -LO https://github.com/docker/buildx/releases/download/${VERSION}/buildx-${VERSION}.darwin-${ARCH} | |
mkdir -p ~/.docker/cli-plugins | |
mv buildx-${VERSION}.darwin-${ARCH} ~/.docker/cli-plugins/docker-buildx | |
chmod +x ~/.docker/cli-plugins/docker-buildx | |
docker buildx version # verify installation | |
# CREDITS | |
# | |
# Acknowledgements to Colima author comment: https://github.com/abiosoft/colima/discussions/273#discussioncomment-2684502 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment