If Docker complains that you don't have git installed:
which gitfor the path (and if you realize now that it's not installed, now you can fix it)- If it's a non-standard path (I use
/opt/homebrew), that's why Docker can't find itcd /usr/local/bin && ln -s $(which git) .