Hey i need help with port forwarding on docker. Look here that i have created a container and exposed ports
codespace:/workspaces/ProxyNode> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
524fa7457520 proxy-node "yarn start" 7 minutes ago Up 7 minutes 0.0.0.0:32770->1080/tcp, :::32770->1080/tcp, 0.0.0.0:32769->3000/tcp, :::32769->3000/tcp, 0.0.0.0:32768->4050/tcp, :::32768->4050/tcp relaxed_benz
Executing curl inside container
codespace:/workspaces/ProxyNode> docker exec -it 524fa7457520 sh
# curl localhost:3000/stats
{"message":"Node stats","stats":{"bytesSent":0,"bytesReceived":0,"throughputSent":0,"throughputReceived":0,"duration":0,"tokensSpent":0,"spentTokens":{"wei":"0","ether":"0","human":"0"}}}
Executing outside the container(host)
codespace:/workspaces/ProxyNode> curl localhost:32769/stats
curl: (56) Recv failure: Connection reset by peer
What is the problem here? I think i have exposed the ports correctly