Multi node cluster with docker compose - please help

i followed word by word instructions of this link..

https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

but my es02 container wont start .. it says failed to resolve host [es01] as follows:
es02 | "at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]",
es02 | "at java.lang.Thread.run(Thread.java:830) [?:?]"] }
es02 | {"type": "server", "timestamp": "2020-04-22T19:28:21,859Z", "level": "WARN", "component": "o.e.d.SeedHostsResolver", "cluster.name": "es-docker-cluster", "node.name": "es02", "message": "failed to resolve host [es01]",
es02 | "stacktrace": ["java.net.UnknownHostException: es01",
es02 | "at java.net.InetAddress$CachedAddresses.get(InetAddress.java:798) ~[?:?]",
es02 | "at java.net.InetAddress.getAllByName0(InetAddress.java:1489) ~[?:?]",
es02 | "at java.net.InetAddress.getAllByName(InetAddress.java:1348) ~[?:?]",
es02 | "at java.net.InetAddress.getAllByName(InetAddress.java:1282) ~[?:?]",
es02 | "at org.elasticsearch.transport.TcpTransport.parse(TcpTransport.java:528) ~[elasticsearch-7.6.2.jar:7.6.2]",
es02 | "at org.elasticsearch.transport.TcpTransport.addressesFromString(TcpTransport.java:470) ~[elasticsearch-7.6.2.jar:7.6.2]",
es02 | "at org.elasticsearch.transport.TransportService.addressesFromString(TransportService.java:813) ~[elasticsearch-7.6.2.jar:7.6.2]",
es02 | "at org.elasticsearch.discovery.SeedHostsResolver.lambda$resolveHostsLists$0(SeedHostsResolver.java:144) ~[elasticsearch-7.6.2.jar:7.6.2]",
es02 | "at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]",
es02 | "at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:633) ~[elasticsearch-7.6.2.jar:7.6.2]",
es02 | "at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]",
es02 | "at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]",
es02 | "at java.lang.Thread.run(Thread.java:830) [?:?]"] }
Gracefully stopping... (press Ctrl+C again to force)
Stopping es03 ... done Stopping es02 ... done
D:\kibanadocker>
D:\kibanadocker>

please help what should be correcting here?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.