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:

  • Point my domain to specific docker container with apache
  • Docker-in-Docker with Gitlab Shared runner for building and pushing docker images to registry
  • Can't access docker container on port 80 on OSX
  • Problems with Dockerbeats dashboard containerName field
  • How to securely share private docker repo login credentials in Azure container service with Mesos & Marathon
  • Health Check command for docker(1.12) container (Not in Dockerfile!)
  • 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

  • how to define HTTP health check in a consul container for a service on the same host?
  • How do I configure Laradock IP?
  • Docker's healthcheck on Windows container and exit code (“||” linux equivalent)
  • docker-compose volumes_from equivalent with version 3
  • Why doesn't Docker Toolbox work on Mac 10.10.5?
  • Multi-host Docker compose application on Swarm
  • 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.