Answer the question
In order to leave comments, you need to log in
Why is the docker command returning an error?
I need to delete all volumes. I do the following: docker volume rm $(docker volume ls -q)
As a result, I see an error:
unknown shorthand flag: 'q' in -q)
See 'docker volume rm --help'.
Answer the question
In order to leave comments, you need to log in
The problem was in the console. Windows cmd.exe returns an error. Maybe the dollar sign is a specific bash shell command.
What if you do something like this?
docker volume ls -q | xargs docker volume rm
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question