Skip to content

Instantly share code, notes, and snippets.

@asciidiego
Created January 1, 2025 05:08
Show Gist options
  • Save asciidiego/f827628b0b108b12767d5ade53d89022 to your computer and use it in GitHub Desktop.
Save asciidiego/f827628b0b108b12767d5ade53d89022 to your computer and use it in GitHub Desktop.
Script to install the Docker `buildx` plugin when using `colima`
#!/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