none
Docker image fails to start from ACR- single container instance but works fine from DockerHub RRS feed

  • Question

  • Hi,

    Our project has a docker image built on Windows that is pushed to azure container registry and DockerHub.

    I have two app services - one refers to container image from DockerHub (public repo) and the other one referring the same image from ACR - Single Container Instance.

    The one deployed from DockerHub starts and runs without any error message whereas the one deployed to Single Container Instance throws the following error in the logs:

    1/07/2019 23:36:51.227 INFO - Site: mycontainer - Start container succeeded. Container: 
    11/07/2019 23:36:56.245 INFO - Site: mycontainer - Container has exited
    11/07/2019 23:36:56.261 INFO - Site: mycontainer - Purging pending logs after stopping container

    11/07/2019 23:36:56.245 ERROR - Site: mycontainer - Container could not be started

    11/07/2019 23:36:56.245 INFO - Site: mycontainer - Attempting to stop container: 196bc2a89fb093415220b659c1eda7fabaaeebd97a2e71802e1dce592defcb35

    11/07/2019 23:36:56.261 INFO - Site: mycontainer - Container stopped successfully. Container Id: 196bc2a89fb093415220b659c1eda7fabaaeebd97a2e71802e1dce592defcb35

    11/07/2019 23:36:56.274 INFO - Site: mycontainer - Purging after container failed to start

    As "Diagnose and Solve Problems" option is not available for Windows containers, please help with a way to troubleshoot why the container is exiting on a Single Container Instance but works on the Docker Hub.

    Thank you!



    Thursday, July 11, 2019 11:46 PM

All replies

  • Thanks for raising this question! To fetch more details on why the container did not start/issue, App Service provides diagnostic functionality for logging information from both the web server and the web application, enable diagnostics to fetch more details and let us know for further investigation. 

    You can access the container logs by browsing to: https://<your-app-name>.scm.azurewebsites.net/api/logs/docker.

    Kindly checkout the documentation Enable diagnostics logging for web apps in Azure App Servicefor a detailed steps outlined.

    You could use Kudu console (https://yoursite.scm.azurewebsites.net) to manage the files- it gives you both command line and file browser access to your site. You could review all your WebApp files though KUDU console. From the Kudu Console> Debug Console >> (CMD/PowerShell> Site > wwwroot. >> Which contains all your files. 

    Friday, July 12, 2019 7:40 PM
    Moderator