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
asked a year ago353 views
1 Answer
1

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

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions