Comments (5)
Yes, this tool is primarily to interact with Docker Hub. Authentication with registries unfortunately can be somewhat tricky (as not all parts of that are part of the distribution specification, so can be implementation specific). You may be interested in https://github.com/regclient/regclient, which is written by Docker Captain @sudo-bmitch, and a more generic tool.
from hub-tool.
Thanks for reporting; as this is for commands interacting with the registry, this may be more appropriate in the https://github.com/docker/hub-tool repository, which is a (still beta / preview) cli to interact with Docker Hub.
Let me transfer this ticket to that repository.
from hub-tool.
FWIW, if you're specifically looking for ways to remove tags; that's already provided by this tool;
hub-tool tag --help
Manage tags
Usage:
hub-tool tag [flags]
hub-tool tag [command]
Available Commands:
inspect Show the details of an image in the registry
ls List all the images in a repository
rm Delete a tag in a repository
Flags:
-h, --help help for tag
Global Flags:
--verbose Print logs
Use "hub-tool tag [command] --help" for more information about a command.
from hub-tool.
I didn't know that this repo existed, but this repo only solves the problem if you are using dockerhub, but not if you are using a different registry.
from hub-tool.
Most registries are good and follow the HTTP specs for the WWW-Authenticate/Authorization headers for Basic and Bearer tokens. However, there are exceptions that require you to impersonate a docker client and build the authorization scope yourself. I think you're quickly getting into territory where you'll want to write your own client if you aren't calling the registry/2.0 or OCI distribution-spec APIs.
from hub-tool.
Related Issues (20)
- repo rm command not working HOT 3
- Error: username differs from your username, deletion aborted HOT 1
- Cannot configure a scopes for new personal access token HOT 4
- need my api not the hackers connected
- cannot login: Error: failed to authenticate: bad status code "400 Bad Request": malformed request: EOF HOT 1
- Docker Hub UI Issue
- Release v0.4.4 download links are for v0.4.1 HOT 2
- docker hub login fails HOT 3
- 500 Internal Server Error on `hub-tool tag rm --force <tag name>` HOT 2
- Management of Organizations (Teams & Users) HOT 1
- Feature request: Add non interactive OPTION on remove ( ex: hub-tool tag rm --yes ... ) HOT 1
- login with personal access token fails HOT 1
- make fails for hub-tool
- Monodb version is outdated in docker hub
- Monodb version is outdated in docker hub
- I don't understand the rate limiting... and bulk operations HOT 1
- add unit tests for `plan.go`
- Postman
- GetOrganizations API is returning unmarshal error
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 hub-tool.