Comments (8)
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.
@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.
@sadaszewski did you get a chance to try the above?
from dxf.
@sadaszewski any updates on the above?
from dxf.
from dxf.
@sadaszewski no problem! Thanks for raising a potential issue, I appreciate it.
from dxf.
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.
Fixed in fa900a3 thanks @umdstu
from dxf.
Related Issues (20)
- Add tag for 7.2.0 HOT 1
- Authentication fails for Azure Container Registry HOT 5
- Authentication fails with key error HOT 1
- del-alias: 405 Client Error: Method Not Allowed HOT 19
- Registry authentication problem while empty 'auth_token' value is returned by catalog HOT 6
- Support for gcr.io HOT 5
- Adds extra '/v2/...' in url for certain repositories HOT 10
- Mention of get-blob in README HOT 2
- docker pull fails when using set-alias to create or move tag HOT 2
- List tags for specific images HOT 3
- Can I add a note about my project in dxf's readme? HOT 3
- Add a function to do "Cross Repository Blob Mount" HOT 12
- Org-less repos not supported HOT 4
- Resolve a tag to its digest HOT 15
- Back to normal HOT 1
- "dxf get-digest" doesn't work with multi-arch images HOT 12
- get_manifest is unreliable in its return type HOT 2
- Request for head manifest api HOT 4
- Cannot auth on registry that return 200 and empty _catalog for anonymous users HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dxf.