https://pantsbuild.org/ logo
#general
Title
# general
b

better-van-82973

04/26/2023, 3:47 PM
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

enough-analyst-54434

04/26/2023, 3:50 PM
b

better-van-82973

04/26/2023, 3:52 PM
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

enough-analyst-54434

04/26/2023, 3:52 PM
No clue - I don't use a Mac.
b

better-van-82973

04/26/2023, 3:52 PM
All good. Thanks anyways!
Updating here for future readers - it does work once the official Docker Desktop is installed
2 Views