From 77b47bc7c463fc58db5bc452127c91738aa42773 Mon Sep 17 00:00:00 2001 From: Sithum Jayarathna Date: Sat, 23 Sep 2017 16:41:27 +0530 Subject: [PATCH] add to group without changing user group add the user to the docker group instead of changing the group to docker. otherwise user will loose sudo permissions. --- scripts/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 1623a1c..9188035 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -13,7 +13,7 @@ PACKER_VERSION="0.10.2" apt-get update apt-get -y install docker.io ansible unzip # add docker privileges -usermod -G docker ubuntu +usermod -aG docker ubuntu # install pip pip install -U pip && pip3 install -U pip if [[ $? == 127 ]]; then