I have Docker Desktop for Windows and Git (including Git Bash) installed on my computer. The docker command works in the Command Prompt and in Powershell, but not in Git Bash. When I run the docker command in Git Bash, I get the following error.
exec: "com.docker.cli": executable file not found in %PATH%
Current PATH : ...;C:\Program Files\Docker\Docker\resources\bin;D:\Program Files\Git\cmd;C:\ProgramData\DockerDesktop\version-bin;...
I need to get Docker to work via Git Bash to run .sh files containing docker commands with Git Bash. I can't find any reason for this error to occur.
... are other paths which are in PATH, but which are not connected to Git Bash or Docker