If like me you wanted to install Portainer to manage your docker environment from where ever you are, using a synology NAS. Make sure you do the below.
You first need to edit the dockerd.json file to allow access. The below is what my config file, basically you are just adding in:
*“hosts” : [ “tcp://localhost:2375”, “unix:///var/run/docker.sock” ],
Should look like this:
“hosts” : [ “tcp://localhost:2375”, “unix:///var/run/docker.sock” ],
“registry-mirrors” :  }
synoservice –restart pkgctl-Docker
Wait for everything to load back up and you should be good to go to connect Portainer to your docker install running on a Synology NAS. Make sure you add the URL endpoint as:
Also remember not to open this up on your firewall as some people could play around with your environment.