How could affect my billing if i use docker hub instead of google image registry?

11/17/2019

I'm deploying some microservices in gcp kubernentes. I don't know if I need to pay to download images from docker hub by network stuff.

  1. How it could affect my billing if I use docker hub instead of google image registry?
  2. Could I save money if I use image registry on gcp instead of docker hub?
  3. Could I need to pay more to use docker hub instead gcp image registry?

I don't know what image registry to use.

Thanks!

-- Alejandro Molina
containers
docker
google-cloud-platform
google-kubernetes-engine
kubernetes

2 Answers

11/17/2019

Unless your images are truly huge, it’s unlikely to matter more than a few cents. You do pay less for traffic to GCR but unless we are taking terabytes of images, it rounds down to zero for practical purposes.

-- coderanger
Source: StackOverflow

11/17/2019

Container Registry uses Cloud Storage under the hood to store your images, which publishes its pricing info in this table. You can store 5GB for free, and another 100GB of storage would cost you $2.60/month. Either way your costs are incredibly low. I'd recommend storing in GCR because your deployments will be faster, management will be simpler with everything in one place, and you can easily enable Vulnerability Scanning on your images.

How it could affect my billing if I use docker hub instead of google image registry?

Google Cloud does not charge for ingress traffic. That means there is no cost to downloading an image from Docker hub. You are downloading over the public net, however, so expect push and pull to/from GCP to take longer than if you stored images in GCR.

-- Travis Webb
Source: StackOverflow