Package Analysis in Docker Image

yes, I have analysed clair, but as I mentioned it is doing the package analysis by going layer by layer in an automated fashion. I wanna do the same thing, but in an automated way. Basically, I need the list of package installed for that particular docker image without running the container.