I have a docker in docker setup for CI. Essentially, the machine has a jenkins CI server on it that uses the same machines docker socket to create nodes for CI.
Thi
Personally, i've just had to do this :
sudo gpasswd -a $USER docker
And it worked out