Set the Docker image to scan with the option command: image --ignore-unfixed postgres:13
. In this case Trivy scan a PostgreSQL image donwloaded previously on local machine. Then just run the Trivy image with
$ docker-compose up
Follow the reference to see more command options.