You are not logged in.

#1 2018-08-20 10:49:34

Alp
Member
Registered: 2008-09-27
Posts: 89

Can't connect to published and running docker container port

I recently upgraded my installed packages and can't access published docker container ports anymore.

$ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                PORTS                               NAMES
d0b065511a19        mongo               "docker-entrypoint.s…"   14 hours ago        Up 11 minutes       0.0.0.0:27117->27017/tcp   mongo_1

Trying to access it results in a two minute delay before finishing with an error:

$ curl localhost:27117
curl: (56) Recv failure: Connection reset by peer

Other tools like robo-3t can't access the database either. I also tried other containers like elasticsearch with the same result.

Any hints how to debug this?

Last edited by Alp (2018-08-20 10:49:56)

Offline

#2 2018-08-21 05:19:00

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Can't connect to published and running docker container port

Can you connect to the port using nc or telnet?

Offline

#3 2018-08-21 07:43:04

Alp
Member
Registered: 2008-09-27
Posts: 89

Re: Can't connect to published and running docker container port

No i was not able to do that. But when i tried it today everything worked again as usual. Very strange, since i didn't update anything since then. Must be something i did wrong but i can't imagine what it was. Thanks nevertheless. Solved!

Offline

Board footer

Powered by FluxBB