quaint-telephone-89068
03/02/2023, 9:33 AMdocker_image target, it gets the following error:
BinaryNotFoundError: Cannot find `docker` on `['/System/Cryptexes/App/usr/bin', '/Users/{user}/.local/bin', '/Users/{user}/.pyenv/shims', '/bin', '/opt/homebrew/bin', '/opt/homebrew/sbin', '/sbin', '/usr/bin', '/usr/local/bin', '/usr/sbin']`. Please ensure that it is installed so that Pants can interact with the docker daemon.
So then the developer installs docker. But trying to run the command again will bring the same error because pants cache its result. There's no troubleshooting guidance on this. The only thing would fix the issue is running pants with --no-local-cache so it could try to search the binary again.
Not sure if this is a bug in pants itself or some troubleshooting docs that must bee added to guide the developers in the right way.
Pants version
2.15.0
OS
MacOS M1 Max was my case.
pantsbuild/pants