English | 简体中文
A GitHub Action to cache Docker image files.
Fork and clone this repository and create a tag by Docker image name, and then the Docker image file image.tar will be stored in the image.zip in GitHub Action Artifacts.
Note:
- There must not be
:in git tag, so you should use--to represent:in the tag name. - The workflow will use
linux/amd64platform by default, if you wantlinux/arm64image, you can add suffix-arm64in tag name. - Workflows are not being run on forked repository by default, so you should enable it manually. See docs.
For example, you want to download the Docker image testcontainers/ryuk:0.5.1, then you should execute the following commands:
# 'testcontainers/ryuk--0.5.1' represents image 'testcontainers/ryuk:0.5.1'
git tag testcontainers/ryuk--0.5.1
git push origin --tagsA GitHub Action will be automatically triggered after the tag is pushed up. You can go to the actions page of your repository and check the execution details at the latest workflow page.
After the GitHub Action workflow is complete, you can download the image file from the 'Artifacts' section, then you can load the Docker image by the following commands:
unzip image.zip
docker load -i image.tarSee LICENSE.