[solved] Got permission denied while trying to connect to the Docker daemon socket

I’m still a beginner with this and trying to use Docker on my ubuntu 18.04 machine. This is the error i receive. Can someone help me?

[email protected]:~$ docker pull aeternity/aeternity
Using default tag: latest
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/create?fromImage=aeternity%2Faeternity&tag=latest: dial unix /var/run/docker.sock: connect: permission denied

Thanks!

Found the solution here https://techoverflow.net/2017/03/01/solving-docker-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket/