Difference between revisions of "~/.docker/config.json"

From wikieduonline
Jump to navigation Jump to search
Line 66: Line 66:
 
* <code>[[~/.dockercfg]]</code>
 
* <code>[[~/.dockercfg]]</code>
 
* [[Avalanche]]
 
* [[Avalanche]]
* <code>[[kubernetes.io/dockerconfigjson]]</code>
+
* [[Kubernetes secrets]]: <code>[[kubernetes.io/dockerconfigjson]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 13:05, 13 November 2023

https://docs.docker.com/engine/reference/commandline/cli/#docker-cli-configuration-file-configjson-properties

~/.docker/config.json
{
  "credsStore": "desktop",
  "credHelpers": {
    "gcr.io": "gcloud",
    "us.gcr.io": "gcloud",
    "eu.gcr.io": "gcloud",
    "asia.gcr.io": "gcloud",
    "staging-k8s.gcr.io": "gcloud",
    "marketplace.gcr.io": "gcloud"
  }
}%
~/.docker/config.json
{
        "auths": {
                "https://index.docker.io/v1/": {
                        "auth": "XXXXXXXXXXXXX",
                        "email": "[email protected]"
                }
        }
}
 ~/.docker/config.json
 {
	"auths": {
		"012345678.dkr.ecr.eu-central-1.amazonaws.com": {}
	},
	"credsStore": "desktop",
	"credHelpers": {
		"asia.gcr.io": "gcloud",
		"eu.gcr.io": "gcloud",
		"gcr.io": "gcloud",
		"marketplace.gcr.io": "gcloud",
		"staging-k8s.gcr.io": "gcloud",
		"us.gcr.io": "gcloud"
	}
 }%
{
	"auths": {
    "https://index.docker.io/v1/": {
      "auth": "bG90YXM6MjWQtYzlhZWJmNGFiZjMz"
    }
   },
	"credHelpers": {
		"asia.gcr.io": "gcr",
		"eu.gcr.io": "gcr,"
		"gcr.io": "gcr",
		"marketplace.gcr.io": "gcloud",
		"staging-k8s.gcr.io": "gcr",
		"us.gcr.io": "gcr"
	}}

Related

See also

Advertising: