Docker unknown shorthand flag: ‘a’ in -aq)

You can also run your command – docker stop $(docker ps -aq) in PowerShell or Git Bash; I would think the command fails because the $(docker ps -aq) part of the command is Linux command and windows CMD does not know how to translate that.

Leave a Comment