title: Deploy a docker container on Azure App Service Linux
body: <p>I have a simple app built as docker image (ubuntu) and put it into docker container. It has few volumes attached to it. I want to push this container to Azure AppService Linux. I tried a few options but with no success.</p>
  
  <ol>
  <li><p>Azure CLI to create a web app and push container to azure container registry and then deploy that to web app.  </p>
  
  <p>Gives <code>invalid reference format</code> error. </p></li>
  <li><p>Uploaded container to <code>acr</code> and updated web app container settings to load this container into web app.</p>
  
  <p>Gives <code>image not found</code> or <code>invalid reference format</code> errors.</p></li>
  </ol>
  
  <p>Not sure how to proceed on this. Any help is highly appreciated. I would also like to know how to use persistent storage for volumes here. Azure <code>fileshare</code> is better option but not sure how to map that to container path.</p>
  
  <p>Below is my sample <code>docker-compose</code> file.</p>
  
  <pre><code>version: "3.3"
  services:
    test-backend:
      image: test-002
      container_name: test-002
      restart: always
      volumes:
       - ./assets:/opt/test_files
       - ./medialibrary:/opt/test_medialibrary
       - ./app-configs:/opt/test_configs
       - ./logs/backend:/opt/test-backend-logs
      extra_hosts:
       test-converter: "127.0.0.1"
      ports:
       - "8000:8000"
  volumes:
    test-data:
    test-data2:
  </code></pre>