You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the layer generated by the build is stored in %TEMP%/Containers/Content (see in the ContentStore class), and the documentation says you should use docker to cleanup those manually.
I have a service which builds and pushes images regularly, and it ended up filling its disk space because of those local layers. I don't want to install docker or have to clean up these layers manually, so I ended up reading the binlog, which contains the container manifest (in the GeneratedContainerManifest output property of the CreateNewImage task), which lists the layer digests, then delete the files based on this info.
It would be nice to have something like a ContainerCleanup or ContainerStoreLocally MSBuild property which would do this cleanup automatically. This would enable having a build server which doesn't fill up its temp directory unnecesarily.
I suppose removing only the last layer would be sufficient since this is the one which contains the built files, but I may be wrong.
The text was updated successfully, but these errors were encountered:
Currently, the layer generated by the build is stored in
%TEMP%/Containers/Content
(see in the ContentStore class), and the documentation says you should use docker to cleanup those manually.I have a service which builds and pushes images regularly, and it ended up filling its disk space because of those local layers. I don't want to install docker or have to clean up these layers manually, so I ended up reading the binlog, which contains the container manifest (in the
GeneratedContainerManifest
output property of theCreateNewImage
task), which lists the layer digests, then delete the files based on this info.It would be nice to have something like a
ContainerCleanup
orContainerStoreLocally
MSBuild property which would do this cleanup automatically. This would enable having a build server which doesn't fill up its temp directory unnecesarily.I suppose removing only the last layer would be sufficient since this is the one which contains the built files, but I may be wrong.
The text was updated successfully, but these errors were encountered: