<p>I have created a new docker image that I want to use to replace the current docker image. The application is on the kubernetes engine on google cloud platform.</p>

<p>I believe I am supposed to use the gcloud container clusters update command. Although, I struggle to see how it works and how I'm supposed to replace the old docker image with the new one.</p>

Peterbarr
<p>You may want to use <code>kubectl</code> in order to interact with your GKE cluster. Method of image update depends on how the Pod / Container was created.</p>

<p>For some example commands, see <a href="https://kubernetes.io/docs/reference/kubectl/cheatsheet/#updating-resources" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/kubectl/cheatsheet/#updating-resources</a></p>

<p>For example, <code>kubectl set image deployment/frontend www=image:v2</code> will do a rolling update "www" containers of "frontend" deployment, updating the image.</p>

<p>Getting up and running on GKE: <a href="https://cloud.google.com/kubernetes-engine/docs/quickstart" rel="nofollow noreferrer">https://cloud.google.com/kubernetes-engine/docs/quickstart</a></p>
