Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

does not work https://localhost:6060

424 views
Skip to first unread message

Кирилл Горохов

unread,
Mar 15, 2023, 3:25:08 AM3/15/23
to clair-dev
Good time of the day!
I launched clair on the test bench, 3 containers rose, these are: traefik, matcher and indexer. The base was taken out to another server, there is a connection, data was poured into the base. Traefik opens at https://localhost:8080, and clair itself at https://localhost:6060 gives "404 page not foundfound". Everything is fine in the container logs. If logs are needed, I can send them, but they are too large. Please help start the service

Joseph Crosland

unread,
Mar 15, 2023, 10:24:34 AM3/15/23
to clair-dev
Hi!

Clair itself doesn't have a GUI and the root is not a valid path, in order to interact with the API please see the API docs and/or the clairctl docs.

Thanks,
Crozzy

Кирилл Горохов

unread,
Mar 16, 2023, 6:45:31 AM3/16/23
to clair-dev
ok, i got it
but even when executing the command  "./clairctl-linux-amd64 -D report --host http://10.65.8.252:6060/ nginx:latest" gives an error

2023-03-16T13:41:51+03:00 DBG fetching ref=nginx:latest

2023-03-16T13:41:51+03:00 DBG using text output

2023-03-16T13:41:53+03:00 DBG found manifest digest=sha256:942ae2dfd73088b54d7151a3c3fd5af038a51c50029bfcfd21f1e650d9579967 ref=nginx:latest

2023-03-16T13:41:53+03:00 DBG requesting index_report attempt=1 digest=sha256:942ae2dfd73088b54d7151a3c3fd5af038a51c50029bfcfd21f1e650d9579967 ref=nginx:latest

2023-03-16T13:41:53+03:00 DBG body="Service Unavailable" digest=sha256:942ae2dfd73088b54d7151a3c3fd5af038a51c50029bfcfd21f1e650d9579967 method=GET path=/indexer/api/v1/index_report/sha256:942ae2dfd73088b54d7151a3c3fd5af038a51c50029bfcfd21f1e650d9579967 ref=nginx:latest status="503 Service Unavailable"

2023-03-16T13:41:53+03:00 DBG index error error="unexpected return status: 503" digest=sha256:942ae2dfd73088b54d7151a3c3fd5af038a51c50029bfcfd21f1e650d9579967 ref=nginx:latest

2023-03-16T13:41:53+03:00 ERR error="unexpected return status: 503"

среда, 15 марта 2023 г. в 17:24:34 UTC+3, jcro...@redhat.com:

Joseph Crosland

unread,
Mar 16, 2023, 4:16:21 PM3/16/23
to clair-dev
Try passing your config instead of just passing the host, 1) 6060 should already be exposed to the host system (assuming you are using the compose workflow 2) By passing the config the auth will be auto-configured

e.g. clairctl -D -c local-dev/clair/config.yaml ....
Reply all
Reply to author
Forward
0 new messages