Clair V4 (4.6.1) failed to connect to the PostgreSQL database #1786
Oliviertjeh
started this conversation in
Design
Replies: 1 comment
-
IIRC the container name is the DNS entry, so |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My name is Olivier, and I am a student working on a project with Clair V4. Unfortunately, I have problems connecting Clair V4 (V4.6.1) to the PostgreSQL database. And I hope someone can help me explain what I am doing wrong.
The error I am getting:
{"level":"error","component":"main","error":"service initialization failed: failed to initialize indexer: failed to create ConnPool: failed to connect to
host=postgres user=postgres database=clair
: hostname resolving error (lookup postgres on 192.168.190.2:53: no such host)","time":"2023-06-16T11:52:34Z","message":"fatal error"}The environment I am working on:
-Locally on VMware with an internet connection
-VMware machine
-Ubuntu 22.0.4
-Using Podman
The following steps have I done:
podman pull postgres:11.5
2. Clair V4 install
podman pull quay.io/projectquay/clair:4.6.1
The config file I am using (config.yaml):
Beta Was this translation helpful? Give feedback.
All reactions