0

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?

Ashish
  • 31
  • 5

1 Answers1

0

Try this instead :

docker rm -f $(docker ps -a -q)