Reputation: 143
Does Kubernetes download Docker image automatically when i create a pod or should I use Docker pull manually to Download the image locally?
Upvotes: 1
Views: 497
Reputation: 4688
You do not need to run docker pull
manually. The pod definition contains the image name to pull and Kubernetes will pull the image for you. You have several options in terms of defining how Kubernetes will decide to pull the image, using the imagePullPolicy:
definition in your pod spec. Much of this is documented here, but basically you can pull if the image is not present, pull always, never update (once the image is local). Hopefully that doc can get you started.
Upvotes: 2