bash
# https://github.com/docker/buildx/releases/latest
URL=https://github.com/docker/buildx/releases/download/v0.16.1/buildx-v0.16.1.linux-amd64
wget "$URL"
PLUGIN_DIR="$HOME/.docker/cli-plugins"
mkdir -p "$PLUGIN_DIR"
mv "$(basename "$URL")" "$PLUGIN_DIR"/docker-buildx
chmod +x "$PLUGIN_DIR"/docker-buildx
docker buildx install
docker buildx use "$(docker buildx create)"
docker buildx version
docker buildx ls