I have existing containers :
e158b26e4147
4dd41f8431f2
06cbbb00dcf1
14d1ceb499b2
I want to delete all of them. So I used the command docker rm $(docker ps -aq)
.
But I am getting following error:
unknown shorthand flag: 'a' in -aq)
See 'docker rm --help'.
What can be the solution?