Last active
July 22, 2024 16:59
-
-
Save darth-veitcher/3888415e48c0ec3dc72fd602c5aff541 to your computer and use it in GitHub Desktop.
install docker buildx
This file contains 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
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