Unable to execute docker command while docker is running

I am trying to run the following docker commmand:

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

But I receive the following error:

  • docker.io - Connecting to MySQL with Scala
  • Multiple SymmetricDS instances at same host
  • `foxx-manager update` fails inside corporate proxy environment
  • How to execute a script when I terminate a docker container
  • Adding a Local GIT Repository to a Gogs Docker Container
  • Volume not really mounted to docker container on IBM Bluemix
  • 2015/09/15 20:57:57 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

    This is odd since I have docker up and running on my computer:

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

  • Is there a way to make docker containers truly fault-tolerant?
  • docker --add-hosts flag equivalent in remote API?
  • How to use php & nodejs from separate containers
  • Docker Wordpress - Wrong URL
  • Automatic provisioning of Open stack VM for Docker containers
  • Running an executable binary made w/ JET Excelsior in Docker
  • One Solution collect form web for “Unable to execute docker command while docker is running”

    Use sudo docker run …. or read the following page to enable non-sudo run for your docker

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.