It is suggested that you use osquery or dockeree to query Docker images, containers, etc.
Remove Containers
Note that running containers will NOT be removed by default.
This is what users want generally speaking.
You can use the option -f to force removing running containers,
but use it with caution …