I have a docker image and i want to connect to the redis database locally.
redis = redis.Redis(
host='localhost',
port = 6379,
charset="utf-8",
decode_responses=True)
what i typed in to the terminal
sudo docker build -t scraper .
sudo docker run scraper
redis.exceptions.ConnectionError: Error 99 connecting to localhost:6379. Cannot assign requested address.
NB:There was lot of articles here but none of them solved my problem. I am not a geek though so simple explanations will be appreciated.. :)