docker-prefetch-image

Crates.iodocker-prefetch-image
lib.rsdocker-prefetch-image
version0.1.4
sourcesrc
created_at2023-12-04 16:57:07.677063
updated_at2023-12-05 16:41:52.789179
descriptionPull Docker images to a Docker daemon via a configuration file
homepage
repository
max_upload_size
id1057805
size82,132
Philip Cristiano (philipcristiano)

documentation

README

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.
Commit count: 0

cargo fmt