Hacker News new | ask | show | jobs
by mostlystatic 2438 days ago
I recently started running more Google Cloud VMs in the UK instead of the US. It was costing me £2 a day to run the VMs, but somehow I also paid £12 a day for "GCP Storage egress between NA and EU”.

Turns out that by default Google's Docker container registry only stores the Docker images in the US. So each time I launched a VM the Docker image was downloaded from the US. I wrote more about it here: https://www.mattzeunert.com/2019/10/13/reducing-docker-image...

The billing interface didn't show that the Cloud Storage cost was related to the Docker images. I was investigating my normal Cloud Storage use, but it didn't explain why I was being charged so much. Only after a few days did I get the idea that it might be the Docker images that were causing it.

1 comments

actually there is a eu mirror for the gcp registry eu.gcr.io
That seems like the kind of thing that should be configured by default on servers in the EU.
It's not really clear to me what that would mean. Auto-replicating customer data like docker images across national borders is a non-starter for legal compliance reasons. That's got to be an opt-in, not an opt-out. So they can't just point outbound GCR requests at the EU registry and assume the customer's images are there.
It's in their docs
Their docs say it’s configured by default on EU servers?
You say what image to use. There is no default.
It's not a mirror, it's just another place to put your images. If you're eu based then it's definitely better to use eu.gcr.io for everything from the start.
Yep, I started copying my images to the EU and Asia regions and now it's fine cost-wise. They don't have an Australia region for the container registry though, so launching VMs there is still pricy for me.