ScribeMD / docker-cache

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

feat(docker): Compress docker images archive #825

Closed madeindra closed 3 months ago

madeindra commented 3 months ago

Github action limits the size of cache to 10GB at max. For some repositories that has a lot of docker images built/used, this could causes "out of space" error. This error not only cause the caching to fail, but also the whole pipeline to fail even though the other jobs are completed successfully.

To prevent above issue, the docker images archive could further be compressed using gzip. This aligns to the available options of docker save and docker load.

madeindra commented 3 months ago

I realized this would be slower, thus defeats the purpose of docker images caching