Skip to content

Instantly share code, notes, and snippets.

@darth-veitcher
Last active July 22, 2024 16:59
Show Gist options
  • Save darth-veitcher/3888415e48c0ec3dc72fd602c5aff541 to your computer and use it in GitHub Desktop.
Save darth-veitcher/3888415e48c0ec3dc72fd602c5aff541 to your computer and use it in GitHub Desktop.
install docker buildx
mkdir -p ~/.docker/cli-plugins
REPO_NAME=buildx
LATEST_URL=`curl -Ls -o /dev/null -w %{url_effective} https://github.com/docker/${REPO_NAME}/releases/latest`
LATEST_VERSION=${LATEST_URL##*/}
DOWNLOAD_URL=https://github.com/docker/${REPO_NAME}/releases/download/${LATEST_VERSION}/${REPO_NAME}-${LATEST_VERSION}.`uname -s`-`uname -m`
curl -L ${DOWNLOAD_URL} -o ~/.docker/cli-plugins/docker-${REPO_NAME}
chmod +x ~/.docker/cli-plugins/docker-${REPO_NAME}
docker buildx install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment