Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store credentials for multiple accounts #326

Open
neoformit opened this issue Jun 3, 2024 · 1 comment
Open

Store credentials for multiple accounts #326

neoformit opened this issue Jun 3, 2024 · 1 comment

Comments

@neoformit
Copy link

I have multiple .docker config dirs to manage different DockerHub accounts across projects. I would like to use the secretservice manager, but it shares one login across all the docker configs.

This might be simple enough to implement if the key for the stored credential was https://index.docker.io/v1/:$USERNAME instead of just https://index.docker.io/v1/.

In which case, the ./docker/config.json entry would probably need to look more like this:

{
  "credsStore": "osxkeychain",
  "username": "blah"
}

So that docker-credentials-xxx knows which credential to pull.

@babbottscott
Copy link

Maybe use credHelpers:

{
    "credHelpers": {
        "<aws_account_id>.dkr.ecr.<region>.amazonaws.com": "ecr-login",
        "docker-registry.my-corp.com": "osxkeychain"
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants