Closed Roydv007 closed 6 months ago
Hello,
It appears to be Windows to me - otherwise locating git.exe wouldn't make much sense.
I see buildkit mentioned too - which is "the default builder for users on Docker Desktop, and Docker Engine".
It seems like Docker may not be able to find Git.
Installing it, or editing your path variable, may fix the issue.
Closing due to inactivity - always happy to re-open if needed.
How did you solve this?
Git must be installed on Windows for git.exe to be available. https://git-scm.com/download/win
If Git is installed, but cannot be found when calling it from Command Prompt / PowerShell, then it needs to be added to PATH. One can search for "path" in the Start Menu and use these settings to adjust the PATH variable.
There are online tutorials for adding programs to PATH - adding Python is a common one, as sometimes people forget to check the "Add to Path" setting on the install wizard. In fact - Git may have that option.
🐛 Summary
I have been running into the below error when running docker compose for the first time.
level=warning msg="current commit information was not captured by the build" error="git was not found in the system: exec: \"git.exe\": executable file not found in %PATH%" failed to solve: lstat /var/lib/docker/tmp/buildkit-mount2052740645/docker/web/root_files: no such file or directory