Skip to content

Commit

Permalink
fix: check that docker is installed (#3889)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuisathaverat committed Jun 17, 2020
1 parent 36c6423 commit a6eb0a8
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 a6eb0a8

Please sign in to comment.