Issue Summary

Got the following error running “docker-compose up -d”
Error: Couldn’t connect to the Docker daemon at http+docker://localhost - is it running?
If it’s a non-standard location, specify the URL with the DOCKER_HOST environment variable.

Technical details:

  • Redash Version:5.0.2
  • Browser/OS:Chrome
  • How did you install Redash: : I used AMI: [ami-0c654c3ab463d22f6] on us-east-1. Then I completed the initial setup, and I was able to user the system. I then edited the env file, which is as following:

PYTHONUNBUFFERED=0
REDASH_LOG_LEVEL=INFO
REDASH_REDIS_URL=redis://redis:6379/0
POSTGRES_PASSWORD=xxxx
REDASH_COOKIE_SECRET=xxxx
REDASH_DATABASE_URL=xxxx

export REDASH_MAIL_SERVER=“email-smtp.us-east-1.amazonaws.com” # default: localhost
export REDASH_MAIL_PORT=“587” # default: 25
export REDASH_MAIL_USE_TLS=“True” # default: False
export REDASH_MAIL_USE_SSL=“False” # default: False
export REDASH_MAIL_USERNAME=“xxxx” # default: None
export REDASH_MAIL_PASSWORD=“xxxx” # default: None
export REDASH_MAIL_DEFAULT_SENDER=“xxxx” # Email address to send from
export REDASH_HOST=“http://xxxx

Then I ssh into the instance, type in “docker-compose up -d”, got the following
Error: Couldn’t connect to the Docker daemon at http+docker://localhost - is it running?
If it’s a non-standard location, specify the URL with the DOCKER_HOST environment variable.

I don’t know much about docker. Please advise.
Appreciate the help.

Please help! Been stuck here for a while…

  1. In the Docker Compose env file you don’t need to prefix the values with export nor use quotes.
  2. To run Docker commands, try prefixing them with sudo. (i.e. sudo docker-compose up -d).
2 Likes

I had the same issue. I was running docker-compose command from home directory.

You should run the sudo docker-compose up -d inside /opt/redash directory.