Skip to content

Instantly share code, notes, and snippets.

@afreisinger
Last active January 10, 2023 23:25
Show Gist options
  • Save afreisinger/7f829f14f0d9afdb93a19a48ba4cf65b to your computer and use it in GitHub Desktop.
Save afreisinger/7f829f14f0d9afdb93a19a48ba4cf65b to your computer and use it in GitHub Desktop.
A quick guide to enable sudoless docker commands on a Synology NAS
#! /bin/sh
sudo synogroup --add docker #Create a docker user group
sudo chown root:docker /var/run/docker.sock #Change the owner group of the docker.sock file
sudo synogroup --member docker $USER #Add your user to the new docker group
# After this, you may need to log out and back in, or even restart your NAS before the permissions take effect.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment