Difference between revisions of "Docker credHelpers"

From wikieduonline
Jump to navigation Jump to search
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
Docker credHelpers property in <code>[[$HOME/.docker/config.json]]</code> specifies a set of credential helpers to use preferentially over <code>[[credsStore]]</code> or <code>[[auths]]</code> when storing and retrieving credentials for specific registries.
  
* [[GitLab]]
+
 
 +
 
 +
* [[GitLab Credential Helpers]]
 
* <code>[[gcloud credential helper]]</code>
 
* <code>[[gcloud credential helper]]</code>
 
* <code>[[docker login]]</code>
 
* <code>[[docker login]]</code>
 +
 +
Example: <ref>https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#use-credential-helpers</ref>
 +
{
 +
  "[[credHelpers]]": {
 +
    "<aws_account_id>.dkr.ecr.<region>.amazonaws.com": "[[ecr-login]]"
 +
  }
 +
}
 +
 +
 +
== Related ==
 +
* Docker <code>[[credsStore]]</code>
 +
* <code>[[$HOME/.docker/config.json]]</code>
 +
 +
== See also ==
 +
* {{docker config}}
 +
* {{Credential Helpers}}
 +
 +
[[Category:IT]]

Latest revision as of 22:30, 5 August 2022

Docker credHelpers property in $HOME/.docker/config.json specifies a set of credential helpers to use preferentially over credsStore or auths when storing and retrieving credentials for specific registries.


Example: [1]

{ 
  "credHelpers": {
    "<aws_account_id>.dkr.ecr.<region>.amazonaws.com": "ecr-login"
  }
}


Related[edit]

See also[edit]

  • https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#use-credential-helpers
  • Advertising: