diff options
-rwxr-xr-x | docker-debian.sh | 7 | ||||
-rwxr-xr-x | docker-ubuntu.sh | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/docker-debian.sh b/docker-debian.sh index 3c4c588..fd7b0a8 100755 --- a/docker-debian.sh +++ b/docker-debian.sh @@ -17,3 +17,10 @@ echo \ sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin + +sudo usermod -G docker $USER + +exec sg docker "newgrp `id -gn`" + +sudo curl -L https://github.com/docker/compose/releases/download/v2.15.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose +sudo chmod +x /usr/local/bin/docker-compose diff --git a/docker-ubuntu.sh b/docker-ubuntu.sh index 40dab94..cba39d8 100755 --- a/docker-ubuntu.sh +++ b/docker-ubuntu.sh @@ -17,3 +17,10 @@ echo \ sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin + +sudo usermod -G docker $USER + +exec sg docker "newgrp `id -gn`" + +sudo curl -L https://github.com/docker/compose/releases/download/v2.15.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose +sudo chmod +x /usr/local/bin/docker-compose |