Expected behavior
Can use Docker Cloud Build to build my images.
Actual behavior
When I try to create and use the buildx cloud builder I receive an error; failed to find driver “cloud”
Additional Information
I have a pipeline in Azure Devops.
I am using the following bash script to ensure the latest version of buildx x is intalled
# Get download link for latest buildx binary. Set $ARCH to the CPU architecture (e.g. amd64, arm64)
ARCH=amd64
BUILDX_URL=$(curl -s https://raw.githubusercontent.com/docker/actions-toolkit/main/.github/buildx-lab-releases.json | jq -r ".latest.assets[] | select(endswith(\"linux-$ARCH\"))")
# Download docker buildx with Build Cloud support
mkdir -vp ~/.docker/cli-plugins/
curl --silent -L --output ~/.docker/cli-plugins/docker-buildx $BUILDX_URL
chmod a+x ~/.docker/cli-plugins/docker-buildx
If I use the buildx version command, it shows I have version 0.16.2 installed, which appears to be the latest version.
The build host is a Linux Ubuntu system, one of the Microsoft build agents.
Steps to reproduce the behavior
- Create new build pipeline
- Use a Docker command to login to Docker.
- Use the following bash script to create the builder in the decker cloud build.
# Get download link for latest buildx binary. Set $ARCH to the CPU architecture (e.g. amd64, arm64)
ARCH=amd64
BUILDX_URL=$(curl -s https://raw.githubusercontent.com/docker/actions-toolkit/main/.github/buildx-lab-releases.json | jq -r ".latest.assets[] | select(endswith(\"linux-$ARCH\"))")
# Download docker buildx with Build Cloud support
mkdir -vp ~/.docker/cli-plugins/
curl --silent -L --output ~/.docker/cli-plugins/docker-buildx $BUILDX_URL
chmod a+x ~/.docker/cli-plugins/docker-buildx
docker buildx version
docker buildx create --use --driver cloud org/name
- The script runs, but fails on the last command, with the error reported; failed to find driver “cloud”