From 5c75f2c860128e18be0f995ac74d5935cb9aab70 Mon Sep 17 00:00:00 2001 From: Paul Bellamy Date: Thu, 19 Nov 2015 13:06:27 +0000 Subject: [PATCH] allow docker group access to /var/run/docker.sock on gce, and rebuild template --- test/gce.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/gce.sh b/test/gce.sh index b1cc7cca13..18163273b7 100755 --- a/test/gce.sh +++ b/test/gce.sh @@ -11,7 +11,7 @@ set -e : ${SSH_KEY_FILE:=$HOME/.ssh/gce_ssh_key} : ${PROJECT:=positive-cocoa-90213} : ${IMAGE:=ubuntu-14-04} -: ${TEMPLATE_NAME:=test-template-8} +: ${TEMPLATE_NAME:=test-template-9} : ${ZONE:=us-central1-a} : ${NUM_HOSTS:=5} SUFFIX="" @@ -74,7 +74,8 @@ apt-get update -qq; apt-get install -q -y --force-yes --no-install-recommends ethtool; usermod -a -G docker vagrant; echo 'DOCKER_OPTS="-H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375 -s overlay"' >> /etc/default/docker; -service docker restart +service docker restart; +chmod g+rw /var/run/docker.sock EOF # It seems we need a short delay for docker to start up, so I put this in # a separate ssh connection. This installs nsenter.