$ npm i -g dockerclean
USAGE:
docker-clean [options]
Options
-v Display version
--con, -c Remove exited containers
--vol, -x Clean up volumes
--images, -i Remove all images tagged with <none>
--all, -a Remove all of the above
# append a 'v' to toggle verbose info
# verbose info for all
docker-clean -av
# verbose info for remove exited containers
docker-clean -cv