--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/69d3e0ba-8a30-4f3a-8148-de606dfeb70a%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
Thanks Yunior!Sounds good.Actually, I tried to remove default blob store manually under /sonatype-work/nexus3/blobs/default, created a new one and restarted nexus but the docker images were still there! There are lot of other folders under /sonatype-work/nexus3/blobs though.Have you tried it or how do we remove blobstore to ensure there is no image reference?Cheers,Rohit
--
A few things:Firstly: We've added a task that allows you to purge dangling Docker images and layers in Nexus 3.2, you might want to check that out first (this is more for the posterity of others).Secondly: http://stackoverflow.com/questions/41828632/delete-repository-via-nexus-3-rest-api (this is how you delete a repo using the script manager, at a very basic level). I think from there internally Nexus will clean up after you, after a period of time (I'm a bit fuzzy here, myself).Thirdly: What doesn't work in that script for you? I'll take a gander at it as time provides :)
Jeffry
On Tue, Apr 18, 2017 at 5:55 AM rohit gupta <rohitg...@gmail.com> wrote:
Hi All,--We configured a docker repository on nexus OSS 3.1 protected by an SSL certificate and are able to successfully pull/push images from it.Now our repo size is growing day by day and we have a disk limit of 200 GB. So we need a scheduled task now to clean up this docker registry.Is there a proven/tested script which can delete all images from docker repository and hence also clear all space taken up by the blobstore?Note:- I tried the groovy script https://gist.github.com/lukewpatterson/bf9d19410094ea8bced1d4bb0523b67f given in a bug Nexus -9263 but it doesnt actually work.Would really appreciate any help as it has kinda become a blocker at the momentThanks,Rohit
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
Thanks Jeffry/Yunior,- We are on nexus 3.1 so we will have to upgrade to 3.2(which is a manual task). I had installed nexus 3.2 on my local m/c and saw that 'Purge unused Docker images and manifests' task has been added.- The script to delete a repo works perfectly fine but just that it doesnt clean up the underlying blobstore! So essentially that doesnt help.Btw, I have played around with a groovy script which I am currently testing but it seems to do the job. I will update on this discussion trail if that works. So essentially we want to avoid upgrading to nexus 3.2 and do tricky stuff like deleting blobstore etc.Cheers,Rohit
On Wed, Apr 19, 2017 at 2:28 AM, Jeffry Hesse <jhe...@sonatype.com> wrote:
A few things:Firstly: We've added a task that allows you to purge dangling Docker images and layers in Nexus 3.2, you might want to check that out first (this is more for the posterity of others).Secondly: http://stackoverflow.com/questions/41828632/delete-repository-via-nexus-3-rest-api (this is how you delete a repo using the script manager, at a very basic level). I think from there internally Nexus will clean up after you, after a period of time (I'm a bit fuzzy here, myself).Thirdly: What doesn't work in that script for you? I'll take a gander at it as time provides :)
Jeffry
On Tue, Apr 18, 2017 at 5:55 AM rohit gupta <rohitg...@gmail.com> wrote:
Hi All,--We configured a docker repository on nexus OSS 3.1 protected by an SSL certificate and are able to successfully pull/push images from it.Now our repo size is growing day by day and we have a disk limit of 200 GB. So we need a scheduled task now to clean up this docker registry.Is there a proven/tested script which can delete all images from docker repository and hence also clear all space taken up by the blobstore?Note:- I tried the groovy script https://gist.github.com/lukewpatterson/bf9d19410094ea8bced1d4bb0523b67f given in a bug Nexus -9263 but it doesnt actually work.Would really appreciate any help as it has kinda become a blocker at the momentThanks,Rohit
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.