Hi folks! I am building a Docker image using Pants...
# general
b
Hi folks! I am building a Docker image using Pants on an M1 Max Mac machine using Colima as the backend. When I run
pants package /path/to/Dockerfile
, I get:
Copy code
11:45:59.60 [ERROR] 1 Exception encountered:

Engine traceback:
  in `package` goal

ProcessExecutionFailure: Process 'Building docker image docker:latest' failed with exit code 1.
stdout:

stderr:
ERROR: no builder "colima" found
But when I run
docker buildx ls
on the machine, I get:
Copy code
$ docker buildx ls
NAME/NODE DRIVER/ENDPOINT STATUS  BUILDKIT PLATFORMS
colima *  docker
  colima  colima          running 20.10.20 linux/arm64, linux/amd64
and
docker buildx use colima
seems to work fine:
Copy code
$ docker buildx use colima
Is there something I’m missing here / some reason Pants can’t find the
colima
builder?
e
b
Ah, I should have checked Github as well. Thanks for the pointer! I assume this means that on Mac, the only way to build is to install the official Docker Desktop?
e
No clue - I don't use a Mac.
b
All good. Thanks anyways!
Updating here for future readers - it does work once the official Docker Desktop is installed