Skip to content

Commit

Permalink
fix: allow non root user to run docker commands
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 31, 2024
1 parent 2242235 commit 0e466db
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 7 deletions.
5 changes: 4 additions & 1 deletion build/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

sudo dockerd-entrypoint.sh >/dev/null 2>/dev/null &

code -v tunnel
sudo chown -R $(whoami) /var/run/docker.sock

code -v tunnel

5 changes: 4 additions & 1 deletion devbox/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

sudo dockerd-entrypoint.sh >/dev/null 2>/dev/null &

code -v tunnel
sudo chown -R $(whoami) /var/run/docker.sock

code -v tunnel

4 changes: 3 additions & 1 deletion devenv/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

sudo dockerd-entrypoint.sh >/dev/null 2>/dev/null &

code -v tunnel
sudo chown -R $(whoami) /var/run/docker.sock

code -v tunnel
5 changes: 4 additions & 1 deletion flox/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

sudo dockerd-entrypoint.sh >/dev/null 2>/dev/null &

code -v tunnel
sudo chown -R $(whoami) /var/run/docker.sock

code -v tunnel

5 changes: 4 additions & 1 deletion homebrew/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

sudo dockerd-entrypoint.sh >/dev/null 2>/dev/null &

code -v tunnel
sudo chown -R $(whoami) /var/run/docker.sock

code -v tunnel

5 changes: 4 additions & 1 deletion nix/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

sudo dockerd-entrypoint.sh >/dev/null 2>/dev/null &

code -v tunnel
sudo chown -R $(whoami) /var/run/docker.sock

code -v tunnel

5 changes: 4 additions & 1 deletion pkgx/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

sudo dockerd-entrypoint.sh >/dev/null 2>/dev/null &

code -v tunnel
sudo chown -R $(whoami) /var/run/docker.sock

code -v tunnel

0 comments on commit 0e466db

Please sign in to comment.