Docker commands referencing $ vars not working on windows terminal

Using windows terminal prompt, my docker sharing volume commands wouldn’t accept the $(pwd). I entered the complete path instead, but I still couldn’t effect a change to the web page output when changing the index.html.
Also docker rm -f $(docker container ls -aq) wasn’t accepted or maybe I got it work but it fell over at the first eol indicator.
Used docker system prune, followed by docker container rm …and entered the first few characters of containers. Had to stop a couple first.

I’ve solved this by putting all code directly in native Ubuntu directories on Win10. I responded to a query from another windows user Raul88 with some details.

1 Like