prakhar1989 / docker-curriculum

:dolphin: A comprehensive tutorial on getting started with Docker!
https://docker-curriculum.com/
MIT License
5.69k stars 2.17k forks source link

Command not working on Windows #384

Open Fantarina opened 10 months ago

Fantarina commented 10 months ago

Hello I don't know if the tutorial was meant to be also Windows friendly but i got this error when running

docker rm $(docker ps -a -q -f status=exited)

Return:

unknown shorthand flag: 'a' in -a
See 'docker rm --help'.

And also i assume the part about stopping the container before removing it was ommitted but it is an other issue.

ScienceAndCats commented 7 months ago

Same here. Seems the -a flag is depreciated?

ScienceAndCats commented 7 months ago

Nevermind, try running it in Git Bash! @Fantarina