From ca1b85283b2d53e5e6e52a90a57a9310dd948d5c Mon Sep 17 00:00:00 2001 From: DennyZhang Date: Sun, 17 Nov 2013 15:44:32 -0600 Subject: [PATCH] Mute false alarm when installing docker In install_docker.sh, we will restart docker service, then connect to /var/run/docker.sock with retry mechanism. At the first contacting with /var/run/docker.sock, when docker service is not ready, it may complain some error. Mute this false alarm. Change-Id: If00a18d2e3ddee951662e272d47ae84215f16ad2 Closes-Bug: #1252087 --- tools/docker/install_docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/docker/install_docker.sh b/tools/docker/install_docker.sh index 2e5b510c41..375cfe958b 100755 --- a/tools/docker/install_docker.sh +++ b/tools/docker/install_docker.sh @@ -45,7 +45,7 @@ restart_service docker echo "Waiting for docker daemon to start..." DOCKER_GROUP=$(groups | cut -d' ' -f1) -CONFIGURE_CMD="while ! /bin/echo -e 'GET /v1.3/version HTTP/1.0\n\n' | socat - unix-connect:$DOCKER_UNIX_SOCKET | grep -q '200 OK'; do +CONFIGURE_CMD="while ! /bin/echo -e 'GET /v1.3/version HTTP/1.0\n\n' | socat - unix-connect:$DOCKER_UNIX_SOCKET 2>/dev/null | grep -q '200 OK'; do # Set the right group on docker unix socket before retrying sudo chgrp $DOCKER_GROUP $DOCKER_UNIX_SOCKET sudo chmod g+rw $DOCKER_UNIX_SOCKET