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
질문됨 일 년 전314회 조회
1개 답변
1

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

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠