I am getting this error after installing Docker on Ubuntu and running
docker version or
sudo docker version.
docker: 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.26/ containers/create: dial unix /var/run/docker.sock: connect: permission denied.
docker using the convenience script from here.