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
Execute the command with your root user by including sudo in the start.