Search code examples
dockerkubernetesdockerhubgoogle-kubernetes-enginegoogle-container-registry

Is it possible to deploy a docker hub publicly hosted image to Kubernetes Container Engine without uploading it to Containers Registery?


Still new to Containers and Kubernetes here but I am dabbling with deploying a cluster on Google Containers Engine and was wondering if you can use a docker hub hosted image to deploy containers, so in my .yaml configuration file I'd say:

  ...
  image: hub.docker.com/r/my-team/my-image:latest
  ...

Is this possible? Or one has to download/build image locally and then upload it to Google Containers Registery?

Thanks so much


Solution

  • Yes, it is possible. The Replication Controller template or Pod spec image isn't special. If you specify image: redis you will get the latest tag of the official Docker Hub library Redis image, just as if you did docker pull redis.