Giter Club home page Giter Club logo

Comments (10)

hashmap avatar hashmap commented on June 12, 2024

In fact Klar was built to work with a private registry. Klar mimics docker images behaviour, so Docker registry is used only for "short" names, you can specify the full name like docker-registry.domain.com/skynetservices/skydns:2.3 see some examples https://github.com/optiopay/klar/blob/master/docker/docker_test.go#L18

from klar.

berendt avatar berendt commented on June 12, 2024

I tried to scan an image on a private password protected registry:

CLAIR_ADDR=clair DOCKER_USER=xxx DOCKER_PASSWORD=xxx klar registry.xzy/infrastructure/jenkins:1.2.3

This failed with the following error message on Clair:

2017-01-09 07:22:00.123609 W | detectors: could not download layer: got status code 401, expected 2XX
2017-01-09 07:22:00.123708 E | worker: layer sha256:75a822cd7888e394c49828b951061402d31745f596b1f502758570f2d0ee79e2: failed to extract data from https://registry.xzy/v2/infrastructure/jenkins/blobs/sha256:75a822cd7888e394c49828b951061402d31745f596b1f502758570f2d0ee79e2: could not find layer

A manual download of the failed layer with the username/password is working like expected.

from klar.

hashmap avatar hashmap commented on June 12, 2024

Thanks for the report, it seems that registry credentials were not passed to Clair, I'll check it.

from klar.

berendt avatar berendt commented on June 12, 2024

@hashmap Any news here?

from klar.

supereagle avatar supereagle commented on June 12, 2024

Have checked the code, there is no error to pass the registry credentials. At the same time, have tested several times, not reproduce this error. @hashmap Any clues?

from klar.

hashmap avatar hashmap commented on June 12, 2024

@berendt I assume you have a password-protected web server in front of your private registry, am I right? In this case you need support of HTTP basic auth (for example) in addition to registry auth dance. It looks like valuable feature.

from klar.

berendt avatar berendt commented on June 12, 2024

@hashmap I am using Nexus OSS as private Docker registry. I am not sure if it requires an additional HTTP authentication. I can directly login to the registry with the docker login command.

from klar.

supereagle avatar supereagle commented on June 12, 2024

Maybe this issue is the same as #12, has been fixed by PR #14

from klar.

supereagle avatar supereagle commented on June 12, 2024

@berendt You can have a try on the latest release v1.2.1. If this error still exists, please report to us. Thanks.

from klar.

hashmap avatar hashmap commented on June 12, 2024

@berendt I'm closing this issue, feel free to reopen it if problem still exists

from klar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.