Cannot curl to localhost: connection refused


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

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

Is there some trick to access the container internally?


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?


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