File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ function main() {
18
18
local dind_container=" $1 "
19
19
local images_file=" $2 "
20
20
local arch=" $3 "
21
+ local dind_container_image=" $4 "
21
22
# as this function maybe called multiple times, we need to ensure the container is removed
22
23
trap " docker rm -f " ${dind_container} " &> /dev/null" RETURN
23
24
# we're using set -e so the trap on RETURN will not be executed when a command fails
@@ -28,7 +29,7 @@ function main() {
28
29
# will change the permissions of the bind mount directory (images/) to root.
29
30
echo -e " Starting DinD container"
30
31
echo -e " -----------------------"
31
- docker run -d --rm --privileged --name " ${dind_container} " -v ${PWD} /images/:/var/lib/docker-embedded/ -d docker:dind
32
+ docker run -d --rm --privileged --name " ${dind_container} " -v ${PWD} /images/:/var/lib/docker-embedded/ -d " ${dind_container_image} "
32
33
33
34
# wait until the docker daemon is ready
34
35
until docker exec " ${dind_container} " docker info & > /dev/null; do
@@ -58,4 +59,5 @@ function main() {
58
59
arch=" ${1-amd64} "
59
60
dind_container_name=" hookos-dind-${arch} "
60
61
images_file=" images.txt"
61
- main " ${dind_container_name} " " ${images_file} " " ${arch} "
62
+ dind_container_image=" ${2-docker: dind} "
63
+ main " ${dind_container_name} " " ${images_file} " " ${arch} " " ${dind_container_image} "
You can’t perform that action at this time.
0 commit comments