.NET Core WebApp+LinuxContainer on Azure App Service

325 Views Asked by At

I created a simple .NET core web app using VS 2017 and added Docker support via VS 2017. I used the Linux OS type to run Docker locally. I was able to build the image and see the container running locally. I then went about creating a new Azure private container registry and pushed the local image to Azure Container registry. I then created a new App service, chose container option, Linux OS Type and selected the image from the Azure Container registry

and then set the startup file as "dotnet" .dll

The sample app has no authentication/authorization

But when I ran the application I always get

2018-11-18 07:25:49.003 INFO  - Starting container for site
2018-11-18 07:25:49.003 INFO  - docker run -d -p 60727:80 --name coreappwithcontainer_0 -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=true -e WEBSITE_SITE_NAME=CoreAppWithContainer -e WEBSITE_AUTH_ENABLED=False -e PORT=80 -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_INSTANCE_ID=4a540b6295ed1dd0d329bf772b30e20350c81c8fadb825a76720c725ee7912df -e HTTP_LOGGING_ENABLED=1 webapptesting.azurecr.io/samples/myfirstcoreappwithcontainer:latest dotnet /home/site/wwwroot/MyFirstCoreAppWithContainer.dll 

2018-11-18 07:25:50.663 ERROR - Container coreappwithcontainer_0 for site coreappwithcontainer has exited, failing site start

But for this, I do not get any other message for further troubleshooting.

0

There are 0 best solutions below