title: Move docker images from one acr to another (docker images --format option not executing docker tag , docker push )
body: <p>I am trying to move images from one acr to another acr. (also any alternate method to do this please suggest)</p>
  <p>I am using shell script and
  I have declared variables for one image to test it ( however i have 20+ images )
  &quot;sourceacr&quot;
  image=&quot;myimage&quot;
  minimum_version=&quot;1.0.0&quot;
  &quot;targetacr&quot;</p>
  <p>steps followed:</p>
  <pre><code>docker pull $sourceacr/image --all-tags
  </code></pre>
  <p>then filter since the minimum version , re-tag it and push to target acr</p>
  <p>my command is</p>
  <pre><code>docker images $sourceacr/$image --filter &quot;since=$sourceacr/$image:$minimum_version&quot; --format &quot;docker tag {{.Repository}}:{{.Tag}} $targetacr/$image:{{.Tag}} | docker push $targetacr/$image:{{.Tag}}&quot;
  
  </code></pre>
  <p>I get output as command that is used after --format option but it doesn't execute the tag and push commands. Any help is appreciated!</p>
  <p>current output:</p>
  <pre><code>docker tag source.azurecr.io/myimage:1.0.0 target.azureacr.io/myimage:1.0.0 | docker push target.azureacr.io/myimage:1.0.0
  </code></pre>