Persist Elastic Search Data in Docker Container : <p>I have a working ES docker container running that I run like so</p>

<pre><code>docker run -p 80:9200 -p 9300:9300 --name es-loaded-with-data --privileged=true --restart=always es-loaded-with-data
</code></pre>

<p>I loaded up ES with a bunch of test data and wanted to save it in that state so I followed up with </p>

<pre><code>docker commit containerid es-tester
docker save es-tester &gt; es-tester.tar
</code></pre>

<p>then when I load it back in the data is all gone... what gives?</p>

<pre><code>docker load &lt; es-tester.tar
</code></pre>
