A few other handy tools:
$ sudo dockerd
If this still fails, it probably means that you're running Docker inside Docker and the top level Docker is not started with priveledge
Example of starting a priviledged docker instance $ docker run --privileged --name dind -d docker:stable-dind
To test if Docker is working $ docker exec -it dind /bin/ash $ sudo docker run hello-world
Ref: