title: How to run a docker container in Azure pipeline?
body: <p>Azure documentation (<a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/docker?view=azure-devops" rel="noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/docker?view=azure-devops</a>) does not specify how to run a docker container in Azure pipeline.
  We can use the Docker@2 task to build / push docker images but it does not have a command to run a container. By looking at source code of older versions of Docker task I can see there has been a run command, but those are now deprecated and there is no documentation to be found.</p>
  <p>I also followed the doc: <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=azure-devops" rel="noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/process/container-phases?view=azure-devops</a>
  With following yaml I was able to pull a docker image which was previously pushed to ACR.
  (<code>my-acr</code> is a service connection I added via project settings)</p>
  <pre><code>pool:
    vmImage: 'ubuntu-16.04'
  
  container:
    image: somerepo/rnd-hello:latest
    endpoint: my-acr
  
  steps:
  - script: printenv
  </code></pre>
  <p>But I cannot get the container to run.</p>