#docker-image #configuration #pull #container-image #config-file #daemon #prefetch

app docker-prefetch-image

Pull Docker images to a Docker daemon via a configuration file

5 releases

0.1.4 Dec 5, 2023
0.1.3 Dec 5, 2023
0.1.2 Dec 5, 2023
0.1.1 Dec 5, 2023
0.1.0 Dec 4, 2023

#202 in Configuration

30 downloads per month

Apache-2.0

25KB
142 lines

Docker Prefetch Image

Configuration-driven downloading/fetching of Docker images.

This can be used to ensure images are present on a host before a container needs to run.

Deployable via a Docker image.

Usage

Usage: docker-prefetch-image [OPTIONS]

Options:
  -d, --docker-socket <DOCKER_SOCKET>  [default: unix:///var/run/docker.sock]
  -c, --config-file <CONFIG_FILE>      [default: docker-prefetch-image.toml]
  -l, --log-level <LOG_LEVEL>          [default: DEBUG]
  -h, --help                           Print help

Example

docker-prefetch-image -c docker-prefect-image.toml.example

See example_job for an example of deploying in Nomad.

Still Todo

  • "Alternative" location to download an image.
    • Pull from a remote repository, tag it as the local repository. This would allow a fallback to a remote repository but using the image as if it were the local repository.

Dependencies

~22–36MB
~579K SLoC