Credentials for Docker Hub may be stored in different registry entry.
See original GitHub issueSome people are experiencing an authorization error when pushing to Docker Hub even if pushing with docker
works. This may be because Docker Hub credentials could be stored under a different registry entry instead of registry.hub.docker.com
. For example, a Docker config (located usually at $HOME/.docker/config.json
) could have:
{
"auths": {
"https://index.docker.io/v1/": {},
...
We should support this alias as well when using Docker config to fetch credentials.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
docker login - Docker Documentation
You can log into any public or private repository for which you have credentials. When you log in, the command stores credentials in...
Read more >Docker Hub and Docker Registries Beginner's Guide - JFrog
A practical step-by-step guide to set up and use Docker Hub, Docker's official and default container registry.
Read more >Using Docker Image Registries - CloudBees Documentation
Note that on Docker Hub, you can use public images without any authentication being required. Encrypted Registry Account Credentials. The most common way ......
Read more >Authenticating with Docker Hub for AWS Container Services
Profiles are stored in the ~/.ecs/credentials file. ecs-cli configure profile \ --access-key <AWS_ACCESS_KEY_ID> \ ...
Read more >Setting up an image registry - IBM Cloud Docs
You can choose to use the built-in registry of your Red Hat OpenShift ... Public registries such as Docker Hub are a way...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
How should it work exactly? For example, my intuition is that, if the given registry is
index.docker.io
, it wouldn’t match the entryindex.docker.io/v1/
in the Docker config because it is more specific. Conversely, if the given repository isindex.docker.io/v1/
, it would match entries of bothindex.docker.io
andindex.docker.io/v1/
. Is that right? And is the suffix only possible in the Docker config or it is generally applicable in other stores likesettings.xml
and the build configurations (pom.xml
andbuild.gradle
)?I think we can leave that off to a later version, since the users explicitly type the names in
settings.xml
. (Forauth
, it is directly tied to the image so there is no alias necessary).