From 81294aa2e6b257f0de5e3c28c3f3c89798330836 Mon Sep 17 00:00:00 2001 From: LoGin Date: Wed, 27 Dec 2023 20:32:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3bootstrap=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E5=AE=89=E8=A3=85docker=E5=90=8E=E4=BC=9A=E4=BD=BF?= =?UTF-8?q?=E5=BE=97=E5=BD=93=E5=89=8D=E7=BB=88=E7=AB=AF=E8=BF=9B=E5=85=A5?= =?UTF-8?q?root=E7=9A=84=E9=97=AE=E9=A2=98=20(#481)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/bootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bootstrap.sh b/tools/bootstrap.sh index 275819917..386d3b9f2 100644 --- a/tools/bootstrap.sh +++ b/tools/bootstrap.sh @@ -61,9 +61,9 @@ install_ubuntu_debian_pkg() if [ -z "$(which docker)" ] && [ -n ${dockerInstall} ]; then echo "正在安装docker..." sudo apt install -y docker.io docker-compose + sudo groupadd docker sudo usermod -aG docker $USER - sudo newgrp docker - # sudo systemctl restart docker + sudo systemctl restart docker elif [ -z ${dockerInstall} ]; then echo "您传入--no-docker参数生效, 安装docker步骤被跳过." elif [ -n "$(which docker)" ]; then