From 76849d28ae6f17fe1777ffa6bf0547ae1345e006 Mon Sep 17 00:00:00 2001 From: Siraj Yasin Date: Mon, 20 Sep 2021 19:53:40 +0000 Subject: [PATCH] AIAP - check if docker server is ready * docker version returns both client and server version So even if server is not running, the client version will be returned and docker build will fail. * So checking for containerd in docker version output. This will be true only if the server is also ready Change-Id: Idd4355b4f8d3617a339df67ac9820e33311b7d79 --- tools/airship-in-a-pod/artifact-setup/assets/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/airship-in-a-pod/artifact-setup/assets/entrypoint.sh b/tools/airship-in-a-pod/artifact-setup/assets/entrypoint.sh index a0f5f4263..1c5cdf934 100755 --- a/tools/airship-in-a-pod/artifact-setup/assets/entrypoint.sh +++ b/tools/airship-in-a-pod/artifact-setup/assets/entrypoint.sh @@ -47,7 +47,7 @@ function check_docker_readiness() { end=$(($(date +%s) + $timeout)) echo "Waiting $timeout seconds for docker to be ready." while true; do - if ( docker version | grep 'Version' ); then + if ( docker version | grep 'containerd' ); then echo "docker is now ready" break else