Coder Social home page Coder Social logo

registry-1.docker.io about dxf HOT 8 CLOSED

davedoesdev avatar davedoesdev commented on September 13, 2024
registry-1.docker.io

from dxf.

Comments (8)

davedoesdev avatar davedoesdev commented on September 13, 2024

Hi @sadaszewski

Thanks for raising this.

Does test/module_example.py work for you on a test repo? I just tried it against one of my repos and it worked. Just trying to narrow down where the problem is.

from dxf.

davedoesdev avatar davedoesdev commented on September 13, 2024

@sadaszewski also, this works for me:

$ DXF_HOST=registry-1.docker.io dxf list-aliases davedoesdev/test
may15-readings
wup

without having to set DXF_USERNAME or DXF_PASSWORD. Does it work for you?

Note that dxf list-repos doesn't work on Docker Hub. I guess they don't want people listing every single repo on the system.

from dxf.

davedoesdev avatar davedoesdev commented on September 13, 2024

@sadaszewski did you get a chance to try the above?

from dxf.

davedoesdev avatar davedoesdev commented on September 13, 2024

@sadaszewski any updates on the above?

from dxf.

sadaszewski avatar sadaszewski commented on September 13, 2024

from dxf.

davedoesdev avatar davedoesdev commented on September 13, 2024

@sadaszewski no problem! Thanks for raising a potential issue, I appreciate it.

from dxf.

umdstu avatar umdstu commented on September 13, 2024

@davedoesdev

I recently came across this and think I see what might be happening. At least in my case.

Two component repos work fine, eg. docker.io/curlimages/curl, docker.io/bitnami/python, and docker.io/circleci/openjdk but 1 component repos fail to authenticate every time, eg. docker.io/python, docker.io/openjdk and docker.io/eclipse-temurin.

I was running 7.7.2, because pip refused to install 7.7.3 because of a dependency conflict, but ultimately got both installed and both fail to work for single component repos.

I poked around some and it looks like it may be how you're setting _repo_path or how authentication itself is being processed. Please let me know how I can help.

Edit:

Ok I think I figured it out. For single component repos, like python, java, and openjdk, you need to prepend library to the API call, eg. registry-1.docker.io/python needs to be registry-1.docker.io/library/python(host=registry-1.docker.io, repo= library/python). I modified your code to this and it seemed to work:

repo_parts = repo.split("/")
if len(repo_parts) == 1:
    self._repo = "library/" + repo
    self._repo_path = ("library/" + repo + "/") if repo else ""
else:
    self._repo =  repo
    self._repo_path = (repo + "/") if repo else ""

from dxf.

davedoesdev avatar davedoesdev commented on September 13, 2024

Fixed in fa900a3 thanks @umdstu

from dxf.

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.