Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 588
mkhatib Avatar asked Nov 19 '15 02:11

mkhatib


1 Answers

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.

like image 121
Andy Shinn Avatar answered Sep 20 '22 01:09

Andy Shinn