I have an Ubuntu Server 16.04, with a service that needs this permission
$ sudo chmod 666 /var/run/docker.sock
Right now, every time the server is rebooted, it's necessary to open a ssh console, run that task and start the service manually.
I need to run that command before the services being started. What would be the most secure way to do it?
EDIT: The service's account already is member of the docker
group.