Difference between revisions of "Kubernetes.io/dockerconfigjson"

From wikieduonline
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
A Kubernetes cluster uses the [[Secret]] of [[kubernetes.io/dockerconfigjson]] type to authenticate with a [[container registry]] to pull a [[private image]].
 +
 +
[[kubectl create secret generic]] regcred --from-file=.dockerconfigjson=<path/to/.docker/config.json> --type=[[kubernetes.io/dockerconfigjson]] <ref>https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#registry-secret-existing-credentials</ref>
 +
  
  
 
  {{Secret types TOC}}
 
  {{Secret types TOC}}
  
 +
== Related ==
 +
* [[Pull an Image from a Private Registry]]
 +
* [[Create a Secret based on existing credential]]
 +
* <code>[[~/.docker/config.json]]</code>
  
 +
== See also ==
 +
* {{docker config}}
 +
* {{K8s secrets}}
 +
* {{kubernetes.io}}
  
 
+
[[Category:K8s]]
{{K8s secrets}}
 

Latest revision as of 20:54, 17 July 2024

Advertising: