docker-gc icon indicating copy to clipboard operation
docker-gc copied to clipboard

INACTIVE: Docker garbage collection of containers and images

Results 22 docker-gc issues
Sort by recently updated
recently updated
newest added

* docker changed the way inspect works and will now query all components for information on given input, this will cause things like volume drivers to get spammed with queries...

In our scenario we use multistage docker builds and intermediate containers are not `created` are never executed. In those scenario we would like to keep those containers till GRACE_PERIOD_SECONDS.

…file Change-Id: I6a240a4123689b6fd02b11d193eac75700798cf8 Currently the code to remove dangling images works okay, but if you are excluding repositories / images with tags set to *, you will not be removing...

The changelog looks huge, but basically it's just wrapping existing code inside `main` function while supporting passing flags like `-h`, `--help`, `--force`, etc. Currently supported ENV variables should work as...

This pull request comes from the discussion had in the [previous one](https://github.com/spotify/docker-gc/pull/182) about updating the dockerfile to take into consideration the latest docker community edition versions. As @davidcaste commented there...

For our workflow, the required grace_period for images and containers are different. So we added the CONTAINER_GRACE_PERIOD_SECONDS and IMAGE_GRACE_PERIOD_SECONDS settings, in a backward compatible way.

1. cleanup 'STATE_DIR' and show docker containers and images info. \# rm -rf /var/lib/docker-gc/ \# docker images REPOSITORY TAG IMAGE ID CREATED SIZE alpine latest 7328f6f8b418 9 weeks ago 3.962...

Sometimes 'docker inspect' will get error like 'Error response from daemon: devmapper: Unknown device xxxx' At this time the script will exit. Add new env variable ERROR_CONTAINER_REMOVAL to handle this...

We've found that the sed command in compute_exclude_ids function is in correct. It should be modified like below: sed 's/^/sha256:/' > $EXCLUDE_IDS_FILE After modified, it works well.