Connect to RPC Server in Docker Connect to RPC Server in Docker docker docker

Connect to RPC Server in Docker


You need to set port with -p argument. EXPOSE doesn't open a port, it's an informational directive. Here is the documentation https://docs.docker.com/engine/reference/commandline/run/#publish-or-expose-port--p---expose

This exposes port 80 of the container without publishing the port to the host system’s interfaces.