title: Update Docker tag using Docker task on Azure DevOps pipeline
body: <p>I'm trying to change the tag of a Docker image using a Docker task on an Azure DevOps pipeline, without success.</p>
  <p>Consider the following Docker image hosted on an Azure container registry:</p>
  <p><a href="https://i.stack.imgur.com/3uaSs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3uaSs.png" alt="Docker image" /></a></p>
  <p>My task is configured as follows:</p>
  <p><a href="https://i.stack.imgur.com/dT2mX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dT2mX.png" alt="Docker task" /></a></p>
  <p><code>$(DockerImageName)</code> value is <code>agents/standard-linux-docker2:310851</code></p>
  <p>I'm trying to change the Docker image tag (e.g. to <code>latest</code>) but so far I wasn't able to make it work. I've also tried to set the arguments as well, without success.</p>
  <p>Task fails with the following error message:</p>
  <blockquote>
  <p>Error response from daemon: No such image: agents/standard-linux-docker2:310851</p>
  <p>/usr/bin/docker failed with return code: 1</p>
  </blockquote>
  <p>What am I missing here?</p>