From 27b71feaa79024126033f4410205804b3c657399 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Sat, 1 Apr 2017 15:53:03 -0500 Subject: Optimize installation, make things work better. --- tests/test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test.sh') diff --git a/tests/test.sh b/tests/test.sh index 5bc169b..e625951 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -53,8 +53,9 @@ fi container_id=$(mktemp) # Run the container using the supplied OS. -printf ${green}"Pulling Docker container: geerlingguy/docker-$distro-ansible."${neutral}"\n" -docker run --detach --volume="$PWD":/etc/ansible/roles/role_under_test:rw $run_opts geerlingguy/docker-$distro-ansible:latest "$init" > "$container_id" +printf ${green}"Starting Docker container: geerlingguy/docker-$distro-ansible."${neutral}"\n" +docker pull geerlingguy/docker-$distro-ansible:latest +docker run --detach --volume="$PWD":/etc/ansible/roles/role_under_test:rw $opts geerlingguy/docker-$distro-ansible:latest $init > "$container_id" container_id=$(cat $container_id) -- cgit v1.2.3