question

Suraj-0515 avatar image
0 Votes"
Suraj-0515 asked SnehaAgrawal-MSFT commented

Azure app service for container says No Space Left On Device while deploying containers to it.

I am running a Web App for containers, and I have used a same app service plan for 3-4 Web Apps for Containers. It was working pretty fine until now where it says No Space Left On Device while doing deployments for the newer images. May be there are some old images and containers on this device. Is there any way where i can make sure that the old images and conatainers are automatically deleted while deploying new images. I want somememory to be cleared off.

Thank you

azure-webapps
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for asking question! Could you please confirm on which app service plan you are using? If you are referring to steps outlined in the documentation on To use a Docker image from a private image registry
Further to elaborate when you run a custom Docker image in App Service, App Service does a docker pull and pulls all image layers. These layers are stored on disk, like if you were using Docker on-premises. Each time the app restarts, App Service does a docker pull, but only pulls layers that have changed. If there have been no changes, App Service uses existing layers on the local disk. If the app changes compute instances for any reason, such as scaling up and down the pricing tiers, App Service must pull down all layers again.

If the container start failed due to no space left on device this may be due to temporary storage is full with temporary files, you may try scaling down and scaling up with app restart.

Let us know if issue remains.


0 Votes 0 ·

Thank you @SnehaAgrawal-MSFT: I am using the Basic app service plan. Yes i did follow the documentation. I tried scaling up also but after some time it is the same as before. I am running multiple app services with different containers, attached to the same app service plan. Yeah i thought of this temp memory. Can you suggest a way to keep this memory cleaned.

0 Votes 0 ·

1 Answer

SnehaAgrawal-MSFT avatar image
0 Votes"
SnehaAgrawal-MSFT answered SnehaAgrawal-MSFT commented

Thanks for reply! For your ask on a 'way to keep this memory cleaned'
.

  • You would need to restart the webapp to clear out the temp space.

  • In case restarting the specific webapp does not help, you would need to restart all the App Services present in that App Service Plan to clear out the temp space.

  • Also you would need to eventually split up the App Service Plan since the amount of Host Space available on each type of App Service Plan is fixed and it is distributed within all the apps present in the App Service Plan.
    Check document link: https://azure.github.io/AppService/2019/05/21/App-Service-Plan-Density-Check.html

  • Further as a best practice, you would need to work on minimizing the size of Docker Container by choosing appropriate base image.

Hope this helps. Let us know.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yeah @SnehaAgrawal-MSFT , this helps me. Thank you so much for you support.

0 Votes 0 ·

Glad to know this helps. Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer.

0 Votes 0 ·