publish container fills up the /tmp/Containers/Content directory over time
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
### Describe the bug
When I publish a container from an ASP.NET Core project on a Linux machine using self-hosted Azure Pipelines, the `/tmp/Containers/Content` directory fills up with data over time until my disk is full.
### To Reproduce
We are publishing containers using this command running on a Linux machine:
```
dotnet publish MyProjectName --configuration Release --os linux --arch x64 \
-p PublishProfile=DefaultContainer \
-p ContainerRegistry=my.container.registry.hostname \
-p ContainerRepository=my-container-name \
-p ContainerImageTag=$VERSION
```
### Exceptions (if any)
after many runs my disk gets full.
### Further technical details
.NET 8
I found this reference to the path: https://github.com/dotnet/sdk/blob/main/src/Containers/Microsoft.NET.Build.Containers/ContentStore.cs
But I did not find a reference to anything that can delete the temporary files created here.
As a workaround I am currently deleting the contents of `/tmp/Containers/Content` manually at regular intervals.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.