["org.elasticsearch.bootstrap.startupexception: java.lang.illegalstateexception: failed to obtain node locks,
sudo chown 1000:1000 <directory you wish to mount>
# With docker
sudo chown 1000:1000 /data/elasticsearch/
OR
# With VM
sudo chown elasticsearch:elasticsearch /data/elasticsearch/