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 |
#476 in Unix APIs
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
~25–38MB
~587K SLoC