Open foobar888 opened 5 years ago
Please update klar.env
to contain KLAR_TRACE=true
(without E), it seems that Klar can't connect do docker registry.
@hashmap Thank you very much! In my case it was my fault: there was no such tag in my docker repo :)
`----> HTTP REQUEST: GET /v2/xxx/manifests/v19.11.01 HTTP/1.1 Host: xxxx.my.cloud:443 Accept: application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.v1+prettyjws Authorization: Basic xxxxxxxxxxxxxxxx
<---- HTTP RESPONSE: HTTP/1.1 404 Not Found Content-Length: 99 Connection: keep-alive Content-Type: application/json; charset=utf-8 Date: Fri, 29 Nov 2019 10:01:19 GMT Docker-Distribution-Api-Version: registry/2.0 Server: nginx/xxxxxxx X-Content-Type-Options: nosniff
{"errors":[{"code":"MANIFEST_UNKNOWN","message":"manifest unknown","detail":{"Tag":"v19.11.01"}}]} `
When I run the command line below:
docker run --env-file=klar.env ############.dkr.ecr.us-east-1.amazonaws.com/klar:latest ${REGISTRY}/nifi:latest
I get the following errors:
My klar Dockerfile is defined as follow:
My klar.env is defined as follow:
And the docker-compose.yml to run Clair/Postgres is defined as follow:
NOTE: 1. If I docker pull the image I would like to scan, it works
docker pull ############.dkr.ecr.us-east-1.amazonaws.com/nifi
2.To test all, I'm running everything in the same AWS EC2.
I wonder if it is an issue with Klar and or Clair/Postgres?
I would be grateful if someone could help me.
Thank you!