I am trying to deploy a Docker image into Google Cloud Artifact Registry in a new location: europe-southwest1
. To do so, first, I’ve checked that it is supported:
gcloud artifacts locations list
As expected, a list of locations is returned, where I can see the one I’m interested on:
LOCATIONS
asia
asia-east1
asia-east2
asia-northeast1
asia-northeast2
asia-northeast3
asia-south1
asia-south2
asia-southeast1
asia-southeast2
australia-southeast1
australia-southeast2
europe
europe-central2
europe-north1
europe-southwest1 <--- this is the one
europe-west1
europe-west2
europe-west3
europe-west4
europe-west6
europe-west8
europe-west9
northamerica-northeast1
northamerica-northeast2
southamerica-east1
southamerica-west1
us
us-central1
us-east1
us-east4
us-east5
us-west1
us-west2
us-west3
us-west4
Then, I’ve tried to configure the new region in Docker:
gcloud auth configure-docker europe-southwest1-docker.pkg.dev
But a warning is returned stating that it is not a supported registry:
WARNING: Your config file at [/Users/ghostmou/.docker/config.json] contains these credential helper entries:
{
"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"
}
}
Adding credentials for: europe-southwest1-docker.pkg.dev
WARNING: europe-southwest1-docker.pkg.dev is not a supported registry
gcloud credential helpers already registered correctly.
I’ve tried with other regions, for example us-central1-docker.pkg.dev
, and it works as expected:
{
"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",
"us-central1-docker.pkg.dev": "gcloud"
}
}
Adding credentials for: us-central1-docker.pkg.dev
gcloud credential helpers already registered correctly
Can anyone help me to know if I’m doing something wrong or if there are any issues with europe-southwest1
region?
2
Answers
I have tried to reproduce the issue from my end following this document. But I am able to deploy docker image in
Artifact Registry
ineurope-southwest1
region.Artifact Registry is available in the
europe-southwest1
region from May 10, 2022. You may faced this issue as it was newly added region.And I believe this issue is fixed as region is available in artifact registry
You must update gcloud locally by executing:
gcloud components update
The gcloud SDK has the full list of created regions.
If you have an old gcloud version probably you don’t see the recently created regions.