# 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](https://hub.docker.com/r/philipcristiano/docker-prefetch-image). ## Usage ``` Usage: docker-prefetch-image [OPTIONS] Options: -d, --docker-socket [default: unix:///var/run/docker.sock] -c, --config-file [default: docker-prefetch-image.toml] -l, --log-level [default: DEBUG] -h, --help Print help ``` ### Example ``` docker-prefetch-image -c docker-prefect-image.toml.example ``` See [example_job](example_job.hcl) 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.