ImagePuller: add sudo for use when user is not in docker group

This PS adds sudo to the image puller commands to enable use when
the user is not in the docker group.

Change-Id: Ic2c2577e830f3db93952b72a92d360da83fb1a16
This commit is contained in:
intlabs 2017-11-03 00:28:54 -05:00
parent 8d290a20f5
commit fa041ea6da
1 changed files with 1 additions and 1 deletions

View File

@ -19,5 +19,5 @@ ALL_IMAGES="$(./tools/image-repo-overides.sh | \
python -c 'import sys, yaml, json; json.dump(yaml.safe_load(sys.stdin), sys.stdout)' | \
jq '.bootstrap.preload_images |map(.) | join(" ")' | tr -d '"')"
for IMAGE in ${ALL_IMAGES}; do
docker inspect $IMAGE > /dev/null || docker pull $IMAGE
sudo -H docker inspect $IMAGE > /dev/null || sudo -H docker pull $IMAGE
done