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

This commit is contained in:
Zuul 2017-11-03 17:10:07 +00:00 committed by Gerrit Code Review
commit 75b656dc58
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