From b481868944525d6ae0939bfc6caa1ff1dbd586df Mon Sep 17 00:00:00 2001 From: Mayank Date: Sun, 5 Jul 2020 11:28:30 +0530 Subject: [PATCH] Try dind --- build-test.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/build-test.sh b/build-test.sh index 5118977..d570966 100755 --- a/build-test.sh +++ b/build-test.sh @@ -7,11 +7,9 @@ uname -m mkdir docker-dir # docker run --rm -dt --name dockerdebian -v docker-dir:/var/lib/docker multiarch/debian-debootstrap:armhf-buster-slim bash -docker run --rm -dt --name dockerdebian --privileged -v docker-dir:/var/lib/docker debian:buster-slim bash -docker exec -t dockerdebian bash -c 'apt-get update; apt-get install curl -y; export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt; curl -fsSL https://get.docker.com -o get-docker.sh; chmod +x get-docker.sh; sh get-docker.sh;' -docker exec -t dockerdebian docker --version -docker exec -t dockerdebian service docker status -docker exec -t dockerdebian service docker start +docker run --rm -dt --name dind -v docker-dir:/var/lib/docker docker:stable-dind bash +# docker exec -t dockerdebian bash -c 'apt-get update; apt-get install curl -y; export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt; curl -fsSL https://get.docker.com -o get-docker.sh; chmod +x get-docker.sh; sh get-docker.sh;' +docker exec -t dind docker --version ls docker-dir @@ -29,7 +27,7 @@ echo "List of images to download: $IMAGES" # docker exec -d dockerpi ./docker-install.sh echo "Pulling images in docker" while IFS= read -r image; do - docker exec -t dockerdebian docker pull --platform=linux/arm/v7 $image + docker exec -t dind docker pull --platform=linux/arm/v7 $image done <<< "$IMAGES" ls docker-dir