Git Product home page Git Product logo

Comments (2)

jessfraz avatar jessfraz commented on May 24, 2024

from reg.

 avatar commented on May 24, 2024

Hi @jessfraz thanks for your answer, i was just about to post a solution:
https://issues.sonatype.org/browse/NEXUS-10294

Is related to nexus and nginx as a proxy, adding to my nginx these directives:

add_header Docker-Distribution-Api-Version registry/2.0 always;
        add_header Accept application/vnd.docker.distribution.manifest.v2+json;
        proxy_set_header Accept application/vnd.docker.distribution.manifest.v2+json;

Worked for me, now the command line is working, but...

Now, i found a similar issue using regserver, when I click in a docker image in the webpage and do the call to http://url/repo/demo/tags it's returns a white page with the text: Manifest not found.

This is my docker-compose service:

regserver:
    image: jess/reg-server
    container_name: regserver
    restart: always
    command: --debug -u user-p 123 -k -r my.dockerregistry.lo --clair clair:6060 --port 8080
    ports:
     - 13000:8080

And this is the debug output from the container:

ppadial@runa:/srv/server$ docker logs -f regserver
2018/01/24 13:44:56 registry.ping url=https://my.dockerregistry.lo/v2/
time="2018-01-24T13:44:56Z" level=info msg="creating initial static index"
time="2018-01-24T13:44:56Z" level=info msg="fetching catalog"
2018/01/24 13:44:56 registry.catalog url=https://my.dockerregistry.lo/v2/_catalog
time="2018-01-24T13:44:58Z" level=info msg="executing the template repositories"
time="2018-01-24T13:44:58Z" level=debug msg="creating/opening file /src/static/index.html"
time="2018-01-24T13:44:58Z" level=info msg="Starting server on port \"8080\""
time="2018-01-24T13:45:13Z" level=info msg="fetching tags" URL=/repo/demo/tags func=tags method=GET
2018/01/24 13:45:13 registry.tags url=https://my.dockerregistry.lo/v2/demo/tags/list repository=demo
2018/01/24 13:45:14 registry.manifests uri=https://my.dockerregistry.lo/v2/demo/manifests/latest repository=demo ref=latest
time="2018-01-24T13:45:14Z" level=error msg="getting v1 manifest for demo:latest failed: missing signature key" URL=/repo/demo/tags func=tags method=GET repo=demo tag=latest

Edited: When i use the same url as in the log to retrieve the tags from command line, it works:
curl -X GET -k https://my.dockerregistry.lo/v2/demo/manifests/latest
And reg client tools is also retrieving tags and manfest ok.

Edit: I have also modified the docker file (regserver) to copy reg command line tool and run reg with -u -p -k and the command retrieve the manifest correct.

from reg.

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.