Skip to content

Commit

Permalink
Update ddn.sh
Browse files Browse the repository at this point in the history
add permissions for $USER run docker without sudo
  • Loading branch information
GrayHatGuy authored Nov 3, 2023
1 parent 66ed473 commit 4f9972c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ddn.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
## ~/dockery/bin/ddn.sh
echo "Starting "
echo "re-installing..." ; sudo apt-get update -y && sudo apt-get upgrade -y ; sudo curl -fsSL https://get.docker.com -o get-docker.sh && sudo bash get-docker.sh && sudo apt-get upgrade -y && sudo apt-get update -y ; sudo usermod -aG docker $USER ; sudo systemctl enable docker.service && sudo systemctl enable containerd.service && echo "docker installed!"
echo "re-installing..." ; sudo apt-get update -y && sudo apt-get upgrade -y ; sudo curl -fsSL https://get.docker.com -o get-docker.sh && sudo bash get-docker.sh && sudo apt-get upgrade -y && sudo apt-get update -y ; sudo usermod -aG docker $USER ; newgrp docker; sudo chown "$USER":"$USER" /home/"$USER"/.docker -R; sudo chmod g+rwx "$HOME/.docker" -R; sudo systemctl enable docker.service && sudo systemctl enable containerd.service && echo "docker installed!"
retVal=$?
if [ $retVal -ne 0 ]; then
echo "Error"
Expand Down

0 comments on commit 4f9972c

Please sign in to comment.