Cannot curl to localhost: connection refused


#1

Spinning up our own public Docker container, we cannot curl localhost.

I’ve tried telnet 127.0.0.1 and get connection refused as well.

Is there some trick to access the container internally?


#2

There’s not much context here to go on.

If you’re using the remote Docker environment, you can not connect directly to that container.
Make sure you’re exposing ports of that container.
Is the container actually running? Do you see any errors in the docker logs of that container?


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.