https://github.com/goodwithtech/dockle
Dockle - Container Image Linter for Security, Helping build the Best-Practice Docker Image, Easy to start
Dockle
helps you:
$ brew untap goodwithtech/dockle # who use 0.1.16 or older version
$ brew install goodwithtech/r/dockle
$ dockle [YOUR_IMAGE_NAME]
See Installation and Common Examples