Skip to content

Instantly share code, notes, and snippets.

@beshkenadze
Created September 8, 2021 14:11
Show Gist options
  • Save beshkenadze/e13d10012b5ff0f100dfacea1fc65de8 to your computer and use it in GitHub Desktop.
Save beshkenadze/e13d10012b5ff0f100dfacea1fc65de8 to your computer and use it in GitHub Desktop.
#!/bin/sh
LATEST=$(wget -qO- "https://api.github.com/repos/docker/buildx/releases/latest" | jq -r .name)
wget https://github.com/docker/buildx/releases/download/$LATEST/buildx-$LATEST.linux-amd64
chmod a+x buildx-$LATEST.linux-amd64
mkdir -p ~/.docker/cli-plugins
mv buildx-$LATEST.linux-amd64 ~/.docker/cli-plugins/docker-buildx
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment