Sample Header Ad - 728x90

Interactive bash in Docker under mingw on Windows

4 votes
1 answer
1257 views
I'm using a bash shell (Mingwg64) on windows, to run bash from a docker container.
Tobi@DESKTOP MINGW64 /
$ docker run -i debian bash
ls
gives the result: bash: line 1: $'ls\r': command not found which from what I can tell is because there's a \r prepended to the usual \n when I press the enter key - as I'm on windows. Anyone know a good fix for this?
Asked by Tobi (143 rep)
Nov 16, 2021, 06:35 PM
Last activity: Nov 16, 2021, 07:24 PM