stakwork / sphinx-swarm

lightning container orchestration for massive deployments
4 stars 4 forks source link

prune stale images once a day #197

Open Evanfeenstra opened 5 months ago

Evanfeenstra commented 5 months ago

looks like the docker api does have a way to prune old unused images. These can stack up quite fast since we are doing lots of updates

https://github.com/fussybeaver/bollard/blob/8b39971775a50257306f31b673339e71f4425922/src/image.rs#L686

Once a day swarm should prune an old stale images