ScribeMD / docker-cache

Cache Docker Images Whether Built or Pulled
MIT License
98 stars 27 forks source link

feat(docker): Support dangling Docker images #816

Closed Kurt-von-Laven closed 6 months ago

Kurt-von-Laven commented 6 months ago

Closes #572.

Docker images that were overwritten by a new one with the same name and tag do not have a name or tag. Docker images that were pulled by digest do not have a tag. Support the former by falling back on their ID and the latter by using their name.

These changes prevent the action from crashing on such images. Continue using both the name and tag for images that have them so that they are retained upon restoring the cache.