Skip to content

Commit

Permalink
fix: check that docker is installed (elastic#3889)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuisathaverat authored and simitt committed Dec 15, 2020
1 parent 81d0d26 commit f1f0fc0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .ci/packer_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-ppc
docker.elastic.co/beats-dev/golang-crossbuild:${GO_VERSION}-s390x
golang:${GO_VERSION}
"

for image in ${DOCKER_IMAGES}
do
(retry 2 docker pull ${image}) || echo "Error pulling ${image} Docker image, we continue"
done
if [ -x "$(command -v docker)" ]; then
for image in ${DOCKER_IMAGES}
do
(retry 2 docker pull ${image}) || echo "Error pulling ${image} Docker image, we continue"
done
fi

0 comments on commit f1f0fc0

Please sign in to comment.