From 2a6b5a2262f4cf94ed3fc13b6d4bb79725d95155 Mon Sep 17 00:00:00 2001 From: Dawn Chen Date: Mon, 2 Mar 2015 23:24:29 -0800 Subject: [PATCH] Removed staled docker artifacts on GCE minions. --- cluster/gce/util.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index f5a164212934f..58a0fd605ebf1 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -511,6 +511,12 @@ function kube-up { echo " echo 'Waiting for metadata MINION_IP_RANGE...'" echo " sleep 3" echo "done" + echo "" + echo "# Remove docker artifacts on minion nodes" + echo "iptables -t nat -F" + echo "ifconfig docker0 down" + echo "brctl delbr docker0" + echo "" echo "EXTRA_DOCKER_OPTS='${EXTRA_DOCKER_OPTS}'" echo "ENABLE_DOCKER_REGISTRY_CACHE='${ENABLE_DOCKER_REGISTRY_CACHE:-false}'" grep -v "^#" "${KUBE_ROOT}/cluster/gce/templates/common.sh"