the default for elasticsearch (running on a host, not a container) was /var/lib/elasticsearch?
the default for the official mqsql container is /var/lib/mysql?
So I'd argue a good and compliant example might be -v /var/lib/elasticsearch/container/data:/var/lib/elasticsearch instead of /usr/share/elasticsearch/data
While this is a smallish issue, note examples like:
Specifically, when using Red Hat Enterprise Linux Atomic Host, the operating system content is mounted in read-only mode. There are only two writable directories for local system configuration: /etc/ and /var/.
The other interesting piece is docker-lvm-plugin, but probably only applicable to RHEL / CentOS / Fedora.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.