How to cache standard images?

In my CI/CD workflow I need to use database container, which is standard postgres:alpine image. I don’t need to build new image based on it, but just run it with specific environment options.

Downloading every time the image from docker hub is time consuming.
How can I cache it somewhere, so instead of downloading, it will be available locally from one workflow run to another?

1 Like

Hi @acidos,

According to the official doc of container.images:
The value can be the Docker Hub image name or a public docker registry name.

You cannot store the container image locally. You have to download it from docker hub…etc.

Thanks.