How to ensure that the old version of my docker image (part of GreenGrass component) is removed on updating the GreenGrass component (V2)

1

I'm having a Greengrass component with is running in a docker image hosted by ECR. If a new version of that image is pulled aka the Component is updated, the old one stays on the device. On many updates, this will fill up my storage on the thing. Is there an automated way, to delete the older (not used anymore) images?

Thanks & Best Regards, Manuel

  • Please make sure you're using Greengrass Nucleus v2.10.2 as 2.10 will now delete unused images. They are only deleted after an additional deployment. ie deployment 1 puts them on device, 2 makes them unnecessary, then in deployment 3 they're removed.

  • Can you please explain the process to get this to work. I have created 3 deployments with 3 incrementing tags for a docker image. on The 3rd deployment the original image still exists on the core device.

  • +1 to Phil's comment. I have also tried 3 subsequent deployments and none of the image got removed. Now 4 images are present on the device

  • Thank you for letting us know, we're looking into it.

    Also make sure that the greengrass.log does not contain "Unexpected error".

  • Please try the latest v2.10.3 now. It will not remove images which are already dangling. It will only removing images going forward from now.

Manuel
已提問 1 年前檢視次數 313 次
1 個回答
1

Can confirm with the nucleus v2.10.3. The 1st image is removed on the 3rd delpoyment.

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南