Error: multiple platforms feature is currently not supported for docker driver

Hey, no need to completely wipe your Docker Desktop!

I ran into the same/similar Issue today after Upgrading to Docker-Desktop 4.14.0 (91374) on M1.
Buildx starts complaining with this (no issues running the identical command the day before):

$ docker buildx build --no-cache --platform=linux/amd64,linux/arm64/v8,linux/arm/v7 -t <repo>:latest --push .
[+] Building 0.0s (0/0)
ERROR: multiple platforms feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")

I just recreated a new Buildx Instance using the docker-container driver, tell Docker to use it and it started working again :slight_smile:

$ docker buildx create --use desktop-linux
pedantic_goodall
$ docker buildx ls
NAME/NODE           DRIVER/ENDPOINT  STATUS  BUILDKIT PLATFORMS
pedantic_goodall *  docker-container
  pedantic_goodall0 desktop-linux    running v0.10.5  linux/arm64, linux/amd64, linux/amd64/v2, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/mips64le, linux/mips64, linux/arm/v7, linux/arm/v6
default             docker
  default           default          running 20.10.21 linux/arm64, linux/amd64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
desktop-linux       docker
  desktop-linux     desktop-linux    running 20.10.21 linux/arm64, linux/amd64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
$ docker buildx build --no-cache --platform=linux/amd64,linux/arm64/v8,linux/arm/v7 -t <repo>/debugpod:latest --push .
[+] Building 57.5s (21/21) FINISHED
 => [internal] booting buildkit                                                                                                                                                                               2.6s
 => => pulling image moby/buildkit:buildx-stable-1                                                                                                                                                            2.1s
 => => creating container buildx_buildkit_pedantic_goodall0                                                                                                                                                   0.6s
 => [internal] load build definition from Dockerfile                                                                                                                                                          0.0s
 => => transferring dockerfile: 163B
[...]

Of course you can tweak a bit more using docker buildx create --use desktop-linux

1 Like