Automatic cleanup of dangling docker images induced by updated egg containers #55

Closed
opened 2026-02-05 17:05:20 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @lancepioch on GitHub (May 17, 2024).

Originally assigned to: @parkervcp on GitHub.

Discussed in https://github.com/pelican-dev/panel/discussions/54

Originally posted by DerLev April 13, 2024
I have had some issues in the past with dangling docker images filling up my storage on my wings host. An automatic task for cleaning up those dangling images would be nice. A current workaround is to set a cron job, which works fine but if this was to be included in the daemon itself or just as a simple note in the docs it would greatly help new users setting things up

Originally created by @lancepioch on GitHub (May 17, 2024). Originally assigned to: @parkervcp on GitHub. ### Discussed in https://github.com/pelican-dev/panel/discussions/54 <div type='discussions-op-text'> <sup>Originally posted by **DerLev** April 13, 2024</sup> I have had some issues in the past with dangling docker images filling up my storage on my wings host. An automatic task for cleaning up those dangling images would be nice. A current workaround is to set a cron job, which works fine but if this was to be included in the daemon itself or just as a simple note in the docs it would greatly help new users setting things up</div>
OVERLORD added the 🟡 medium label 2026-02-05 17:05:20 +03:00
Author
Owner

@rmartinoscar commented on GitHub (May 17, 2024):

Would it run docker image rm <image id> -f or rather docker image prune -f ?

@rmartinoscar commented on GitHub (May 17, 2024): Would it run `docker image rm <image id> -f` or rather `docker image prune -f` ?
Author
Owner

@iamkubi commented on GitHub (May 18, 2024):

I did add a wings endpoint that returns container usage data and allows pruning of images. (https://github.com/pelican-dev/wings/pull/6)

This isn't exposed in the node admin area yet, but it can be in the future. I'll also look into removing an image if it's no longer used after a server is deleted that can be enabled/disabled.

@iamkubi commented on GitHub (May 18, 2024): I did add a wings endpoint that returns container usage data and allows pruning of images. (https://github.com/pelican-dev/wings/pull/6) This isn't exposed in the node admin area yet, but it can be in the future. I'll also look into removing an image if it's no longer used after a server is deleted that can be enabled/disabled.
Author
Owner

@parkervcp commented on GitHub (May 19, 2024):

prune will remove images that are not being used. If a server is removed any dangling images would be removed by a prune.

@parkervcp commented on GitHub (May 19, 2024): prune will remove images that are not being used. If a server is removed any dangling images would be removed by a prune.
Author
Owner

@iamkubi commented on GitHub (May 19, 2024):

In my opinion it's better to have the least impact than to prune all images just because one image is no longer in use.

@iamkubi commented on GitHub (May 19, 2024): In my opinion it's better to have the least impact than to prune all images just because one image is no longer in use.
Author
Owner

@parkervcp commented on GitHub (May 19, 2024):

prune could be ran every minute and I doubt it would have problems.

@parkervcp commented on GitHub (May 19, 2024): prune could be ran every minute and I doubt it would have problems.
Author
Owner

@iamkubi commented on GitHub (May 19, 2024):

You could also clear your DNS cache every time you make a DNS query, but why would you?

@iamkubi commented on GitHub (May 19, 2024): You could also clear your DNS cache every time you make a DNS query, but why would you?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel-pelican-dev#55