Not sure if it's the issue with connection string or my docker image. Running docker container ls I see
57cb0c982c76 redis "docker-entrypoint.s…" 0.0.0.0:32773->6379/tcp
The port seems to be mapped to the outside. I tried to run
docker run -d -P redis:alpine
with this and other different variations of parameters, and using StackExchange.Redis C# driver and it times out. Connection string looks like that:
localhost:6379,ssl=True,abortConnect=False
(no password). What am I doing wrong?
UPDATE
Tried with docker run -d -p 6379:6379/tcp redis (also redis:alpine). Still can't connect. docker inspect shows HostConfig:
"PortBindings": {
"6379/tcp": [
{
"HostIp": "",
"HostPort": "6379"
}
]
}
docker inspect <containerId>to get that IP address)