Guide here: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html You may need this sudo sysctl -w vm.max_map_count=262144