Run Elasticsearch 6.x in a FreeBSD Jail

If you try to run Elasticsearch in a Jail without an external IP address you might get an error like:

No up-and-running loopback addresses found, got [name:lo1 (lo1)]

How to solve it?

You need to bind your Elasticsearch to your primary IP address:

vim /usr/local/etc/elasticsearch/elasticsearch.yml:
network.host: 10.10.10.2