无法在docker运行时执行docker命令

我正在尝试运行以下docker命令:

docker run --name my_postgres -d -p 127.0.0.1:5432:5432 -v /volumes/data:/var/lib/postgresql/data postgres 

但是我收到以下错误:

 2015/09/15 20:57:57 Cannot connect to the Docker daemon. Is 'docker -d' running on this host? 

这很奇怪,因为我已经在我的电脑上运行了docker:

 ~ ps aux | grep docker root 31083 0.1 0.0 355636 15420 ? Ssl 20:58 0:00 /usr/bin/docker.io -d 

使用sudo docker run ….或阅读以下页面,启用docker的非sudo运行https://askubuntu.com/questions/477551/how-can-i-use-docker-without-sudo