Skip to content

Commit

Permalink
detect docker socket and update perms
Browse files Browse the repository at this point in the history
  • Loading branch information
ilude committed Mar 22, 2024
1 parent 0cf5930 commit 828c380
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .devcontainer/entrypoint.d/docker-socket-perms.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
#!/bin/bash
sudo chown ${USER}:${USER} /var/run/docker.sock

# Check if /var/run/docker.sock exists
if [ -S "/var/run/docker.sock" ]; then
echo "Docker socket detected. changing ownership to ${USER}:${USER}..."
sudo chown ${USER}:${USER} /var/run/docker.sock
fi

0 comments on commit 828c380

Please sign in to comment.