The Geth team conveniently provides a Docker container for the latest Geth builds, but when using Docker on Windows or Mac OS (where Docker is using a virtual machine to host containers) how to run it such that RPC calls can be seen on the local workstation? Running docker run -p 8545:8545 --name geth ethereum/cilent-go --rpc
doesn't seem to do it.
Testing with CURL:
curl -X POST -H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id":"curltest", "method": "web3_clientVersion", "params": [] }' \
"http://192.168.99.100:8545"
I get no response from the above command, it just spins until it times out.