Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.0k views
in Technique[技术] by (71.8m points)

elastichead is not connecting with elasticsearch docker container

my elastichead is not connecting even when my elasticsearch container is running. I can't understand the problem.

(env) C:UsersshubhDesktop
eact-djangoemt_apiemt_assets>docker ps -a

CONTAINER ID IMAGE
COMMAND CREATED STATUS PORTS NAMES 117ba87ad874 mdillon/postgis:11
"docker-entrypoint.s…" 9 hours ago Up 4 hours
0.0.0.0:5432->5432/tcp postgres 70b6527e1046 docker.elastic.co/elasticsearch/elasticsearch:6.8.8
"/usr/local/bin/dock…" 9 hours ago Up 5 hours
0.0.0.0:9200->9200/tcp, 9300/tcp elasticsearch

but after running elastichead head there is still no connection. my system is windows 10 home edition.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

i was working with the docker toolbox which includes oracle virtual box. There you can see your docker machine settings. just stop your docker machine with command in docker quickstart terminal

docker-machine stop <docker-machine name>

Then in your oracle virtual box..go to System>Advanced> Increase the memory to 4gb(4096mb) And start docker-machine with command in docker quickstart terminal

docker-machine start <docker-machine name>

and work with your container.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...