I have run the command
docker run -p 6379:6379 --name some-redis -d redis
When I run localhost:6376
in the browse I get the error message ERR_INVALID_HTTP_RESPONSE
The Resdis is running:
Steins-MacBook-Air:Domain steinkorsveien$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
474e7611824d redis "docker-entrypoint.s…" 17 hours ago Up 17 hours 0.0.0.0:6379->6379/tcp some-redis
How do I get connected to the Redis component?
2
Answers
You can not connect to Redis from the browser, you can verify the connection and Redis health from the command line.
As Redis accept connection at the TCP level, so browser only work with HTTP level.
Networking layer
Redis server listens on a tcp connection not a http one, so it wouldn’t be accessible via the browser.
You could use redis-cli to communicate with the redis server, or if you prefer a GUI I’d recommend redis-commander