# Docker commands referencing $ vars not working on windows terminal

**URL:** <https://forum.codewithmosh.com/t/docker-commands-referencing-vars-not-working-on-windows-terminal/4553>\
**Category:** Uncategorized\
**Created:** [May 1, 2021, 12:05am UTC](https://forum.codewithmosh.com/t/docker-commands-referencing-vars-not-working-on-windows-terminal/4553 "2021-05-01T00:05:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ubhub](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/ubhub/32/1515_2.png) [@ubhub](https://forum.codewithmosh.com/u/ubhub)\
**Post date:** [May 1, 2021, 12:05am UTC](https://forum.codewithmosh.com/t/docker-commands-referencing-vars-not-working-on-windows-terminal/4553/1 "2021-05-01T00:05:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ubhub](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/ubhub/32/1515_2.png) [@ubhub](https://forum.codewithmosh.com/u/ubhub)\
**Post date:** [May 10, 2021, 11:12am UTC](https://forum.codewithmosh.com/t/docker-commands-referencing-vars-not-working-on-windows-terminal/4553/2 "2021-05-10T11:12:09Z")

</div>

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.
