Container inventory

I work for a company which helps organizations track license compliance for software (essentially any application that requires licensing).
I am trying to figure out if there is a way to collect inventory of containers’ content (e.g. the software that runs inside the container).
So far, I haven’t found anything in the Docker documentation - any suggestions?