Azure Web App for Containers - Not enough disk space to start the Web App's container

不羁的心 提交于 2021-01-28 11:10:40

问题


I have an App Service Plan on Azure with 2 Web Apps created from Windows based Docker images. For each app I have one additional staging slot.

From today I'm not able to start one of the staging apps, I get following error:

Unable to start container. Error message: Not enough disk space to start container. Current available space: 1566 MB. New container estimated disk space: 1707 MB

When I check File system storage for App Service Plan, it says that I'm using only 20MB out of 250GB.

Is it possible that Azure is storing old images locally?
How to free some space?


回答1:


At the end, I was able to make this work by scaling to larger plan, restarting containers and scaling it back down. After that I was able to restart containers multiple times without scaling it up again.




回答2:


What Windows base image are you using? You have mentioned that you’re unable to start one of the staging apps, does it happen with prod/swap as well? Windows Containers are deployed onto the local SSD Storage in each instance within the App Service Plan.

The first time you use a custom Docker image, we will do a "docker pull" and pull all layers. These layers are stored on disk just as if you were using Docker on-premises. When we do a "docker pull" after a site restart, we will only pull layers that have changed. If there have been no changes, we will simply use existing layers on the local disk. More details here.

Yes, checkout the maximum available storage/App Service Plan SKU:

PC2/19 GB | PC3/60 GB | PC4/79 GB

Review the dockerfile config for the EntryPoint of the container. All apps in the same App Service Plan share the same resources, you need to review each app.

To isolate the issue, generally you may try and run the image locally or swap/production . You're free to use a different custom Docker image to run your app. However, you must choose the right parent image for the framework you want. It takes some time to download a parent image during app start-up. However, you can reduce start-up time by using one of the following parent images that are already cached in Azure App Service:

  • mcr.microsoft.com/dotnet/framework/aspnet:4.7.2-windowsservercore-ltsc2019

  • mcr.microsoft.com/windows/nanoserver:1809 - this image is the base container used across Microsoft ASP.NET Core Microsoft Windows Nano Server images.

Kindly let us know how it goes for further investigation.



来源:https://stackoverflow.com/questions/59578287/azure-web-app-for-containers-not-enough-disk-space-to-start-the-web-apps-cont

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!