Comments (14)
Sorry for the scarce information. I was in a hurry freeing up the disk space ;)
As this project is using the official libraries, I was expecting that it handles authentication the same way as a docker pull
(using the information from .docker/config.json
).
So if it should theoretically work as currently implemented, this is a bug report. If it's simply not implemented yet, this is a feature request. :)
Anyways, in the meantime i already solved my issue by accessing the registry directly with my own custom script via the API, and cleaning the orphaned blobs afterwards with registry garbage-collect
. So you can also see this information just as a comment and close the issue.
from deckschrubber.
Got it! Maybe I should enhance the documentation. But the short answer is: no it doesn't read from config.json
. You should just change your URL to contain HTTP basic auth credentials. But this would be a really nice feature
from deckschrubber.
It this a comment, a suggestion, or just an observation?
from deckschrubber.
Would you be able to test the new feature branch (not uploaded yet) that enables basic auth? If yes, I'll upload the branch. Thanks.
from deckschrubber.
Hi! I am running into this issue as well, can you upload the branch so i can test it?
from deckschrubber.
@gerritjanf great! I only have implemented the basic auth and not the token based. Please give me some time, as I am fairly busy ATM.
from deckschrubber.
@yan-foto Okay. Basic auth is fine with me
from deckschrubber.
Here is the branch: https://github.com/fraunhoferfokus/deckschrubber/tree/feature/basic-auth
Please note that it has been a while since I tested the code and it might be buggy.
I really appreciate your commitment!
from deckschrubber.
@yan-foto The -username and -password options seem to be missing from the code in the branch you refference.
from deckschrubber.
@gerritjanf sorry for wasting your time! The commit was missing :( I pushed again just now.
from deckschrubber.
Hi @yan-foto, Just tried again and now i have the basic auth parameters. However it seems that it doesn't work for me. I am tying to use your tool against the registry included in GitLab omnibus and it is complaining about using a token. As this is not yet implemented i seems that your tool is not usable for me right now.
from deckschrubber.
Yes I know! They don't use basic auth.
from deckschrubber.
For anyone who is interested (cc @phertweck @mf-lit @phlegx), I have provided a shaky implementation for token-based authentication under basic-auth
feature branch. As I don't use Docker anymore and have no proper way of testing this, it would be great if any of you guys cold give it a try. It still works with basic auth and should now support the rest.
NOTE: I am not familiar with scoping mechanisms of Docker Registry and don't know if you could even catalog a registry (to list repositories) if you're not the owner; I also don't know if that process can be limited to namespaces, etc. Accordingly, I'm not sure if this program could be used with registries that you don't own (e.g., Docker Hub).
I appreciate any help!
from deckschrubber.
@yan-foto FYI I have tested https://github.com/fraunhoferfokus/deckschrubber/releases/tag/v0.6.0 against a traefik basic auth to a private registry and it was working like a charm :) Thanks!
from deckschrubber.
Related Issues (20)
- Unclear messages HOT 2
- how to input username/password for private registry ? HOT 2
- Docker image HOT 6
- Receiving error "ERR0[0000] Could not delete image!" when trying to delete images from private registry. HOT 6
- Gateway timeout if too many tags (thousands) HOT 1
- How to specify negative regexp in "-tag" parameter? HOT 1
- Error message when connecting to dockerhub HOT 2
- Support for Bearer authentication HOT 1
- Paging issue HOT 1
- Use basic auth HOT 1
- Make it safer by not deleting images when running without parameters HOT 3
- download problem HOT 13
- Download problem HOT 1
- Not working HOT 1
- SSO auth issue HOT 3
- OCI images not supported HOT 9
- How to delete images without any tag?
- Could not fetch manifest! HOT 2
- Function NewRegistry changed in docker/distribution HOT 2
- Deleting a tag also deletes all other images with this image ID. HOT 1
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 deckschrubber.