Docker Community Forums

Share and learn in the Docker community.

Curl: (56) Recv failure: Connection reset by peer - Alpine

Hey there,
I have a docker image based on alpine:latest. When I try to connect to it after launching it in detached mode, I get this error message :
curl 127.0.0.1:88
curl: (56) Recv failure: Connection reset by peer
I am quite new to Docker and I am having a hard time trying to fix it, with no success until now.
This is weird to me, because the image seems alive :
docker ps
CONTAINER ID - IMAGE - COMMAND - CREATED - STATUS - PORTS - NAMES
33ad46e573dd - budspencer/alpine - "/root/entrypoint.sh " - 11 minutes ago - Up 11 minutes - 8080/tcp - 0.0.0.0:88->80/tcp - ABC
and I can exec commands in it (I know it’s not the same to be able to run commands and to connect to it, but I can see the image being “here” and alive and it’s very frustrating).
Any help would be really appreciated.
Thanks in advance! :slight_smile:

你好 或许你应该进入 CONTAINER内部,通过curl 0.0.0.0:80 观察容器内部是否该服务已经启动,如果没启动请手动启动该服务,还需要注意aplpine服务的默认端口号是否被修改为其它的端口号,如果被修改请从新run新的实例并选择对应的端口号。
当确认容器内部能访问到该服务,那么在宿主机上curl 127.0.0.1:88 就应该可以了