There is not enough space on the disk – Azure Devops build containers

If the retention policies are not defined properly on Azure DevOps you may encounter out of space issues on your windows build containers. Take for example the below build, which stopped as it could not copy the necessary files on the build/temp folder.

In order to fix the build, you can connect to the windows server which runs the containers and get a prompt for the one that failed.

docker exec -it agent-name-01 cmd.exe

You can then check for the available free space:

Navigate to folder work and delete some build folders to free up space.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.