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

From wikieduonline
Jump to navigation Jump to search
Line 43: Line 43:
 
* <code>[[~/.docker/daemon.json]]</code>
 
* <code>[[~/.docker/daemon.json]]</code>
 
* <code>[[gcloud auth configure-docker]]</code>
 
* <code>[[gcloud auth configure-docker]]</code>
* <code>[[DOCKER_AUTH_CONFIG]]</code>
+
* [[GitLab CI]]: <code>[[DOCKER_AUTH_CONFIG]]</code>
 +
* <code>[[docker login]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 12:29, 5 August 2022

~/.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"
	}
 }%

Related

See also

Advertising: