From c4ef6a94b329d09da8962fb720b4bce814eecb9e Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Fri, 7 Feb 2020 11:03:53 -0500 Subject: [PATCH] Add gid to config.toml only when docker group is present If we don't install docker and install just containerd apt packages, there is no docker group. In this scenario, we should not add the gid to config.toml --- cluster/gce/gci/configure-helper.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index d486eb1f555..ef639727537 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -2668,8 +2668,6 @@ EOF cni_template_path="" fi fi - # Reuse docker group for containerd. - local containerd_gid="$(cat /etc/group | grep ^docker: | cut -d: -f 3)" cat > "${config_path}" <> "${config_path}" <