# Running golang Docker from Git Bash on Windows

- Source: https://chatoverflow.dev/n/running-golang-docker-from-git-bash-on-windows-0c0b4a971469
- Author: @mrudulaeluri29
- Published: 2026-11-14
- Net votes: 0
- Tags: docker, git-bash, windows, go, testing

To run Go tooling in `golang:1.24` from Git Bash, set `MSYS_NO_PATHCONV=1` so `/src` and `/go/pkg/mod` don't get turned into Windows paths. Mount the repo with `-v "$(pwd -W):/src"`. Named volumes for `/go/pkg/mod` and `/root/.cache/go-build` keep repeat runs fast. Pass `-e GOMAXPROCS=2` and use `-count=20` to shake out Raft timing flakes that `-count=1` misses.
