Bonjour,

J'installe actuellement sur mon docker sous Windows10 un kibana5 . Lorsque je me connecte sur le port 5601 du kibana j'ai le message d'erreur
" Unable to connect to Elasticsearch at http://elasticsearch:9200"

Un docker ps me montre que mon elasticsearch est bien lancé

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
$ docker ps
CONTAINER ID        IMAGE                COMMAND                  CREATED             STATUS              PORTS                                            NAMES
f73a56dc4873        el5b_nginx           "/usr/local/bin/st..."   22 minutes ago      Up 22 minutes       0.0.0.0:8080->80/tcp                             el5b_nginx_1
1315627923e1        el5b_logstash        "/bin/sh -c 'logst..."   22 minutes ago      Up 22 minutes       0.0.0.0:5000->5000/tcp                           el5b_logstash_1
42645b14dc04        el5b_kibana          "/bin/sh -c kibana..."   22 minutes ago      Up 22 minutes       0.0.0.0:5601->5601/tcp                           el5b_kibana_1
440f157f501d        el5b_elasticsearch   "/bin/sh -c elasti..."   22 minutes ago      Up 22 minutes       0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp   elasticsearch
, mais le docker logs me montre qu'il y a un soucis reseau
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$ docker logs 440f157f501d
[2017-07-30T17:41:01,717][INFO ][o.e.n.Node               ] [] initializing ...
[2017-07-30T17:41:01,778][INFO ][o.e.e.NodeEnvironment    ] [dsPPxgQ] using [1] data paths, mounts [[/ (none)]], net usable_space [15gb], net total_space [17.8gb], spins? [possibly], types [aufs]
[2017-07-30T17:41:01,778][INFO ][o.e.e.NodeEnvironment    ] [dsPPxgQ] heap size [990.7mb], compressed ordinary object pointers [true]
[2017-07-30T17:41:01,779][INFO ][o.e.n.Node               ] node name [dsPPxgQ] derived from node ID [dsPPxgQnQf6Zl30dANlcTA]; set [node.name] to override
[2017-07-30T17:41:01,780][INFO ][o.e.n.Node               ] version[5.3.1], pid[6], build[5f9cf58/2017-04-17T15:52:53.846Z], OS[Linux/4.4.73-boot2docker/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_141/25.141-b15]
[2017-07-30T17:41:02,792][INFO ][o.e.p.PluginsService     ] [dsPPxgQ] loaded module [aggs-matrix-stats]
[2017-07-30T17:41:02,794][INFO ][o.e.p.PluginsService     ] [dsPPxgQ] loaded module [ingest-common]
[2017-07-30T17:41:02,795][INFO ][o.e.p.PluginsService     ] [dsPPxgQ] loaded module [lang-expression]
[2017-07-30T17:41:02,795][INFO ][o.e.p.PluginsService     ] [dsPPxgQ] loaded module [lang-groovy]
[2017-07-30T17:41:02,795][INFO ][o.e.p.PluginsService     ] [dsPPxgQ] loaded module [lang-mustache]
[2017-07-30T17:41:02,796][INFO ][o.e.p.PluginsService     ] [dsPPxgQ] loaded module [lang-painless]
[2017-07-30T17:41:02,796][INFO ][o.e.p.PluginsService     ] [dsPPxgQ] loaded module [percolator]
[2017-07-30T17:41:02,797][INFO ][o.e.p.PluginsService     ] [dsPPxgQ] loaded module [reindex]
[2017-07-30T17:41:02,797][INFO ][o.e.p.PluginsService     ] [dsPPxgQ] loaded module [transport-netty3]
[2017-07-30T17:41:02,797][INFO ][o.e.p.PluginsService     ] [dsPPxgQ] loaded module [transport-netty4]
[2017-07-30T17:41:02,797][INFO ][o.e.p.PluginsService     ] [dsPPxgQ] no plugins loaded
[2017-07-30T17:41:05,676][INFO ][o.e.n.Node               ] initialized
[2017-07-30T17:41:05,681][INFO ][o.e.n.Node               ] [dsPPxgQ] starting ...
[2017-07-30T17:41:05,815][WARN ][i.n.u.i.MacAddressUtil   ] Failed to find a usable hardware address from the network interfaces; using random bytes: 5e:1f:af:80:c5:fd:ef:dc
[2017-07-30T17:41:05,961][INFO ][o.e.t.TransportService   ] [dsPPxgQ] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}
[2017-07-30T17:41:09,067][INFO ][o.e.c.s.ClusterService   ] [dsPPxgQ] new_master {dsPPxgQ}{dsPPxgQnQf6Zl30dANlcTA}{NBexcHvySe6LXX_2z1RhOA}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-07-30T17:41:09,114][INFO ][o.e.g.GatewayService     ] [dsPPxgQ] recovered [0] indices into cluster_state
[2017-07-30T17:41:09,155][INFO ][o.e.h.n.Netty4HttpServerTransport] [dsPPxgQ] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}
[2017-07-30T17:41:09,156][INFO ][o.e.n.Node               ] [dsPPxgQ] started


Failed to find a usable hardware address from the network interfaces; using random bytes: 5e:1f:af:80:c5:fd:ef:dc
pour information complémentaire
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
1 Le dockerFile de elasticsearch comprend un 
RUN echo 'vm.max_map_count=262144' >> /etc/sysctl.conf

2 La memoire dans virtualbox de la machine par defaut à ete montée à 5Go et 4 CPU pour les processeurs


3 le docker-compose
      version: '2'

      services:
        elasticsearch:
          build: elasticsearch/
          container_name: elasticsearch
          ports:
            - "9200:9200"
            - "9300:9300"
          environment:
            ES_JAVA_OPTS: "-Xms1g -Xmx1g"
          user: esuser
          networks:
            - docker_elk
          volumes:
            - $PWD/data/es/:/usr/share/data

4 le elasticsearch.yml
cluster.name: docker-m
node.name: docker-node-1
path.data: /user/share/data
network.host: "0.0.0.0"


5 ma version de docker toolbox
$ docker version
Client:
 Version:      17.06.0-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:30:30 2017
 OS/Arch:      windows/amd64

Server:
 Version:      17.06.0-ce-rc5
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   b7e4173
 Built:        Tue Jun 20 07:18:21 2017
 OS/Arch:      linux/amd64
 Experimental: false


6 
$ curl -IGET http://localhost:9200
curl: (7) Failed to connect to localhost port 9200: Connection refused

$ curl -IGET http://elasticsearch:9200
curl: (6) Couldn't resolve host 'elasticsearch'
Merci de votre aide
Phil