Elasticserach 7.2 Unable to create cluster with error "Unable to lock JVM Memory: error=12, reason=Cannot allocate memory"

elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:12,750+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "loaded module [x-pack-monitoring]"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:12,750+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "loaded module [x-pack-rollup]"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:12,751+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "loaded module [x-pack-security]"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:12,751+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "loaded module [x-pack-sql]"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:12,751+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "loaded module [x-pack-watcher]"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:12,754+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "no plugins loaded"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:19,380+0000", "level": "INFO", "component": "o.e.x.s.a.s.FileRolesStore", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:20,166+0000", "level": "INFO", "component": "o.e.x.m.p.l.CppLogMessageHandler", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "[controller/108] [Main.cc@110] controller (64 bit): Version 7.2.0 (Build 65aefcbfce449b) Copyright (c) 2019 Elasticsearch BV"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:21,024+0000", "level": "DEBUG", "component": "o.e.a.ActionModule", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "Using REST wrapper from plugin org.elasticsearch.xpack.security.Security"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:22,636+0000", "level": "INFO", "component": "o.e.d.DiscoveryModule", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "using discovery type [zen] and seed hosts providers [settings]"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:23,738+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "initialized"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:23,739+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "starting ..."  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:24,235+0000", "level": "INFO", "component": "o.e.t.TransportService", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "publish_address {172.19.0.2:9300}, bound_addresses {0.0.0.0:9300}"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:24,245+0000", "level": "INFO", "component": "o.e.b.BootstrapChecks", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "bound or publishing to a non-loopback address, enforcing bootstrap checks"  }
elasticsearch_1      | ERROR: [1] bootstrap checks failed
elasticsearch_1      | [1]: memory locking requested for elasticsearch process but memory is not locked
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:24,259+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "stopping ..."  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:24,288+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "stopped"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:24,288+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "closing ..."  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:24,312+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "closed"  }
elasticsearch_1      | {"type": "server", "timestamp": "2020-10-14T13:34:24,315+0000", "level": "INFO", "component": "o.e.x.m.p.NativeController", "cluster.name": "elk-cluster", "node.name": "primary",  "message": "Native controller process has stopped - no new native processes can be started"  }
database_elasticsearch_1 exited with code 78