This repository has been archived on 2024-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
vyos-config/scripts/pull_containers.sh

9 lines
255 B
Bash
Raw Normal View History

#!/bin/sh
mapfile -t CONFIG_IMAGES < <(find /config/config-parts/ -type f -exec sed -nr "s/set container name .* image '(.*)'/\1/p" {} + | sort | uniq)
for image in "${CONFIG_IMAGES[@]}"; do
2024-02-07 15:48:36 -06:00
echo "Pulling image ${image}"
podman pull "${image}"
done