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:
parent
8d290a20f5
commit
fa041ea6da
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user