title: Incorrect image reference when launching Dataflow Flex templates
body: <p>We are using Dataflow Flex Templates and following this guide (<a href="https://cloud.google.com/dataflow/docs/guides/templates/using-flex-templates" rel="nofollow noreferrer">https://cloud.google.com/dataflow/docs/guides/templates/using-flex-templates</a>) to stage and launch jobs. This is working in our environment. However, when I SSH onto the Dataflow VM and run <code>docker ps</code> I see it is referencing the a different docker image to the one we speccify in our template (underlined in green):
  <a href="https://i.stack.imgur.com/6Gxqb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6Gxqb.png" alt="Running docker ps on the Dataflow VM" /></a></p>
  <p>The template I am launching from is as follows and jobs are created using <code>gcloud beta dataflow flex-template run</code>:</p>
  <pre><code>{
  &quot;image&quot;: &quot;gcr.io/&lt;MY PROJECT ID&gt;/samples/dataflow/streaming-beam-sql:latest&quot;,
  &quot;metadata&quot;: {
      &quot;description&quot;: &quot;An Apache Beam streaming pipeline that reads JSON encoded messages from Pub/Sub, uses Beam SQL to transform the message data, and writes the results to a BigQuery&quot;,
      &quot;name&quot;: &quot;Streaming Beam SQL&quot;,
      &quot;parameters&quot;: [
          {
              &quot;helpText&quot;: &quot;Pub/Sub subscription to read from.&quot;,
              &quot;label&quot;: &quot;Pub/Sub input subscription.&quot;,
              &quot;name&quot;: &quot;inputSubscription&quot;,
              &quot;regexes&quot;: [
                  &quot;.*&quot;
              ]
          },
          {
              &quot;helpText&quot;: &quot;BigQuery table spec to write to, in the form 'project:dataset.table'.&quot;,
              &quot;is_optional&quot;: true,
              &quot;label&quot;: &quot;BigQuery output table&quot;,
              &quot;name&quot;: &quot;outputTable&quot;,
              &quot;regexes&quot;: [
                  &quot;[^:]+:[^.]+[.].+&quot;
              ]
          }
      ]
  },
  &quot;sdkInfo&quot;: {
      &quot;language&quot;: &quot;JAVA&quot;
  }
  }
  </code></pre>
  <p>So I would expect the output of <code>docker ps</code> to show <code>gcr.io/&lt;MY PROJECT ID&gt;/samples/dataflow/streaming-beam-sql</code> as the image on Dataflow. When I launch the image from GCR to run on a GCE instance I get the following output when running <code>docker ps</code>:</p>
  <p><a href="https://i.stack.imgur.com/Cb38R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cb38R.png" alt="Custom Docker image lunched from GCR and running on a GCE istance." /></a></p>
  <p>Should I expect to see the name of the image I have referenced in the Dataflow template on the Dataflow VM? Or have I missed a step somewhere?</p>
  <p>Thanks!</p>