<#18391 Pants cache docker path search> Issue crea...
# github-notifications
q
#18391 Pants cache docker path search Issue created by rhuanbarreto Describe the bug Let's put a situation where a developer doesn't have docker installed before running pants. If the developer runs or builds a
docker_image
target, it gets the following error:
Copy code
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