1
0
mirror of https://github.com/rancher/os.git synced 2025-06-19 03:31:55 +00:00
os/scripts/tar-images

14 lines
293 B
Plaintext
Raw Normal View History

2016-05-06 17:12:09 +00:00
#!/bin/bash
set -e
cd $(dirname $0)/..
IMAGES=$(bin/host_ros c images -i build/initrd/usr/share/ros/os-config.yml)
2016-05-06 17:12:09 +00:00
for i in $IMAGES; do
if [ "${FORCE_PULL}" = "1" ] || ! docker inspect $i >/dev/null 2>&1; then
docker pull $i
fi
done
docker save ${IMAGES} > build/images.tar