How to bind to 0.0.0.0 instead of localhost for Docker purposes

substrate

I am currently trying to wrap the entire Node in a Docker container. However substrate when i run it runs on localhost. I cannot seem to find a way to bind it to 0.0.0.0 since Docker doesn't play too nice binding to localhost due to the nature of VMs being intermediary for a lot of environments.

Best Answer

Turns out substrate has two flags needed to bind to that interface. --ws-external and --rpc-external. Both of those will allow that.