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

Pull registry credentials from Docker config. #101

Closed
coollog opened this issue Feb 15, 2018 · 1 comment
Closed

Pull registry credentials from Docker config. #101

coollog opened this issue Feb 15, 2018 · 1 comment
Milestone

Comments

@coollog
Copy link
Contributor

coollog commented Feb 15, 2018

This should be used if credentials could not be found in defined credHelpers and Maven settings, but before inferring credential helpers.


UPDATED by @chanseokoh to reflect the current state of Jib handling ~/.docker/config.json.

Docker config may store credentials in 3 ways (or a combination):

  1. Credential helpers for targeted registries
{
    "credHelpers": {
        "registry.example.com": "credential helper binary (suffix to docker-credential-)",
        "gcr.io": "gcloud",
        ...
    },
    ...
}
  1. Legacy "default" credential helper. For recent Docker versions, consider using credHelpers only.
{
    "credsStore": "credential helper binary (suffix to docker-credential-)",
    ...
}
  1. Explicitly embedding password in plain text (discouraged). Consider using a credential helper binary.
{
    "auths": {
        "registry": {
            "auth": "username:password string in base64",
        },
        ...
    }
}
@coollog
Copy link
Contributor Author

coollog commented Feb 15, 2018

Part of #22

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