Oh ok. If you use podman instead there isn't as much friction. Just type "podman" instead of "docker" as the commands are the same.
winget install -e --id RedHat.Podman
podman run --it --rm -p 8000:8000 .. image
For gitbash, add a new profile in Windows Terminal and find "bash.exe" in Program Files\Git (sorry I can't remember the details and not on Windows right now). Once you have this you can use normal Linux commands, setup a .bashrc, ls, cd ~, vi, etc.
Anyway, food for thought in case you want to try a different workflow one day.
Where exactly does this run? Podman/Docker makes no difference, doesn't it? You still need to run a VM (WSL2 on Windows), so might as well run those directly in the WSL2 environment I already have? But again, docker in WSL2 doesn't work as directly on Linux, for whatever reason.
> For gitbash, add a new profile in Windows Terminal and find "bash.exe" in Program Files\Git (sorry I can't remember the details and not on Windows right now). Once you have this you can use normal Linux commands, setup a .bashrc, ls, cd ~, vi, etc.
Been there and tried that, and "git bash" on Windows is probably the worst mixmatch, and bunch of tooling gets confused when the shell is bash but the actual host is Windows.
winget install -e --id RedHat.Podman
podman run --it --rm -p 8000:8000 .. image
For gitbash, add a new profile in Windows Terminal and find "bash.exe" in Program Files\Git (sorry I can't remember the details and not on Windows right now). Once you have this you can use normal Linux commands, setup a .bashrc, ls, cd ~, vi, etc.
Anyway, food for thought in case you want to try a different workflow one day.