The docker installation es reported an error of failed; error = – cannot allocate memory ‘(errno = 12)

The solution executes the following command to allocate memory initially. The reason for the error is that the memory is not enough.
the ES image I downloaded is 5.6.8. Modify the version number according to my own situation
docker run - D - P 9200:9200 - P 9300:9300 -- name = es_ " -e ES_ JAVA_ OPTS="-Xms256m -Xmx256m" elas ticsearch:5.6.8
after the command is executed, the pro test is available

Read More: