Tried but getting:
Caused by: org.apache.http.NoHttpResponseException: 127.0.0.1:8332 failed to respond
One interesting thing in docker logs is
bitcoind_1 | 2018-03-06 12:57:42 Binding RPC on address ::1 port 8332 failed.
But that happens for any port not just that one.
And this one, connected to the container I tried to read the config:
root@990e2bbe3ebc:/# cat /home/bitcoin/.bitcoin/bitcoin.conf
cat: /home/bitcoin/.bitcoin/bitcoin.conf: No such file or directory
But in docker logs it is claiming it is reading it.
bitcoind_1 | 2018-03-06 12:57:42 Using config file /home/bitcoin/.bitcoin/bitcoin.conf