I recently came across an old, corrupted Git repository of mine and just wanted to use git-repair, which was, unfortunately, not available via Homebrew. Instead, I opted to spawn Ubuntu and mount my current folder into the container:
docker run -it -v $PWD:/app ubuntu /bin/bashUsually you want to run another apt update before you
apt updateAnd you are ready to install (as always with caution)!