I am dockerized a golang application and i am trying to access the application. Application running in port 8007
I am running the container the following command
docker run --name sample_go_app -p 7000:8007 sample_go
After tried curl http://localhost:7000
but getting error
curl: (56) Recv failure: Connection reset by peer
main.go
...
srv := &http.Server {
Handler: router,
Addr: "localhost:8007",
}
...