0

I want to prune all volumes except for one or two. I'm trying to use the docker volume prune command with the --filter option but I'm getting an error:

$ docker volume prune --filter 'name!=volume1' --force
Error response from daemon: Invalid filter 'name!'

Looks like it's complaining about the "not equals" syntax. How can I get this to work?

Johnny Metz
  • 5,977
  • 18
  • 82
  • 146

0 Answers0