I’m creating a docker file for sphinxsearch and having issues with the content of the container being overwritten.
docker run --name some-sphinx -v ~/path/to/host:/usr/local/sphinx mysphinx
Instead of binding the content in the directory in the container to the host, it overwrites the container with an empty directory in place of what existed.
In the mysql docker container, if you mount a directory from the host to
/var/lib/mysql it works fine, copying the contents to the host.
I was under the impression that it was a 2-way bind and that it would know to copy from container to host since host was empty and not created.