title: Kubernetes java-api update container image
body: <p>I'm trying to automate deployment of test builds in CI with Gradle and the Fabric8 Java kubernetes-client.</p>
  
  <p>I'm trying to find the right syntax to update the RC with the new Docker image tag (not :latest).</p>
  
  <p>Something like...</p>
  
  <pre><code>client.replacationControllers()
        .inNamespace('default')
        .withName('mycirc')
        .edit()
        .editSpec()
        .editTemplate()
          .editSpec()
            .withContainer('mycontainername')
              .withImage('myimage:newtag')
            .endContainer()   // &lt;--- Not sure how to do this previous line
          .endSpec()
        .endTemplate()
        .endSpec()
        .done()
  </code></pre>
  
  <p>Can we update containers without having to totally delete and rebuild it?</p>