question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Credentials for Docker Hub may be stored in different registry entry.

See original GitHub issue

Some 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:closed
  • Created 5 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
chanseokohcommented, Jul 17, 2018

How should it work exactly? For example, my intuition is that, if the given registry is index.docker.io, it wouldn’t match the entry index.docker.io/v1/ in the Docker config because it is more specific. Conversely, if the given repository is index.docker.io/v1/, it would match entries of both index.docker.io and index.docker.io/v1/. Is that right? And is the suffix only possible in the Docker config or it is generally applicable in other stores like settings.xml and the build configurations (pom.xml and build.gradle)?

0reactions
coollogcommented, Jul 19, 2018

I think we can leave that off to a later version, since the users explicitly type the names in settings.xml. (For auth, it is directly tied to the image so there is no alias necessary).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found