Do not add docker group if it already exists
This commit is contained in:
parent
b9d46a3ba0
commit
881002098d
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ fi
|
||||||
if [[ -z $USER ]]; then
|
if [[ -z $USER ]]; then
|
||||||
USER=`whoami`
|
USER=`whoami`
|
||||||
fi
|
fi
|
||||||
sudo groupadd docker
|
|
||||||
|
getent group docker || sudo groupadd docker
|
||||||
sudo usermod -aG docker $USER
|
sudo usermod -aG docker $USER
|
||||||
|
|
||||||
# vscode
|
# vscode
|
||||||
|
|
Loading…
Reference in a new issue