arminc / clair-scanner

Docker containers vulnerability scan
Apache License 2.0
848 stars 154 forks source link

"clair" container quits with {"Event":"pgsql: could not open database: dial tcp 172.17.0.2:5432: connect: connection timed out ...}} #137

Open mcrabtree1 opened 1 year ago

mcrabtree1 commented 1 year ago

I am running the following images arminc/clair-db latest 6a8cb71f8d1e arminc/clair-local-scan latest c36c0c0115ca

Using commands docker run -p 5432:5432 -d --name db arminc/clair-db:latest docker run -p 6060:6060 --link db:postgres -d --name clair arminc/clair-local-scan:latest

clair container quits working after 3min with the following output for $docker logs clair

{"Event":"pgsql: could not open database: dial tcp 172.17.0.2:5432: connect: connection timed out","Level":"fatal","Location":"main.go:97","Time":"2023-10-27 17:03:22.738006"}

Not certain where to proceed