title: How to deploy a Docker container to Azure App Service from GitLab container registry
body: <p>I have an application hosted on GitLab and have set the GitLab CI to build my docker image and push it into GitLab Container registry. Now I want to deploy that container image into Azure App Service without using Azure Container Registry (I don't want to have another registry). Is this possible and how?</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I tried like this and it's not working.
  <a href="https://i.stack.imgur.com/LfRG4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LfRG4.png" alt="enter image description here"></a></p>
  
  <p>With this error:</p>
  
  <pre><code>2020-05-27T14:31:32.739Z INFO  - Pulling image: project1_administration:latest
  
  2020-05-27T14:31:33.098Z ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://registry-1.docker.io/v2/library/project1_administration/manifests/latest: unauthorized: incorrect username or password"}
  
  2020-05-27T14:31:33.099Z ERROR - Pulling docker image project1_administration:latest failed:
  
  2020-05-27T14:31:33.100Z INFO  - Pulling image from Docker hub: library/project1_administration:latest
  
  2020-05-27T14:31:33.577Z ERROR - DockerApiException: Docker API responded with status code=NotFound, response={"message":"pull access denied for project1_administration, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"}
  
  2020-05-27T14:31:33.580Z ERROR - Image pull failed: Verify docker image configuration and credentials (if using private repository)
  
  2020-05-27T14:31:33.586Z INFO  - Stopping site project1test because it failed during startup.
  </code></pre>
  
  <p>The username and password I used works when I connect to gitlab site. It seems it is trying to use Docker hub to pull the image not the GitLab.</p>