By default, RethinkDB binds all services to 127.0.0.1. So this following example will persist data to the host_data_path on the container's host machine and available to 127.0.0.1 on the standard ports.
| Service | Flag | Default Port |
|---|---|---|
| Driver | --driver-port | 28015 |
| Cluster | --cluster-port | 29015 |
| HTTP WebUI | --http-port | 8080 |
docker run -d -v host_data_path:/data rethinkdb
To open up the driver and cluster port to the external traffic you must specify the address of local interfaces or provide all.
docker run -d -v host_data_path:/data rethinkdb --bind all