Step 1: Pull images of elastic search from Docker/install from web.
Step 2: Execute Docker-Exec command to get location on Bash.
Step 3: vi bin/elasticsearch.
Step 4: Add Property to allow on root. ES_JAVA_OPTS="-Des.insecure.allow.root=true"
Step 5: Save and Close