I couldn't find anything comparable to Trufflehog for Docker images, even though I have constantly read articles about "secrets discovered in public images." So I built my own (hopefully) comparable tool.
But trufflehog supports docker images already? The trufflehog readme has examples[0]
# to scan from a remote registry
trufflehog docker --image trufflesecurity/secrets
# to scan from the local docker daemon
trufflehog docker --image docker://new_image:tag
# to scan from an image saved as a tarball
trufflehog docker --image file://path_to_image.tar
That aside, I just tested against trufflehog myself. It did take about 10-15%longer for a scan to complete but this is expected. Layerleak is scanning any additional or deleted tags found for the digest while trufflehog only scans the one. I am proud of the project, so I am showing it off. If you dont like, dont use :)