# Running Elasticsearch using docker-compose Exception in thread "main"

**URL:** <https://discuss.elastic.co/t/running-elasticsearch-using-docker-compose-exception-in-thread-main/219082>\
**Category:** Elasticsearch\
**Created:** [February 12, 2020, 9:12pm UTC](https://discuss.elastic.co/t/running-elasticsearch-using-docker-compose-exception-in-thread-main/219082 "2020-02-12T21:12:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kosodrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kosodrom/32/99278_2.png) [@Kosodrom](https://discuss.elastic.co/u/Kosodrom)\
**Post date:** [February 12, 2020, 9:13pm UTC](https://discuss.elastic.co/t/running-elasticsearch-using-docker-compose-exception-in-thread-main/219082/1 "2020-02-12T21:13:00Z")

</div>

Hi guys,

I'm trying to spin up an elastic cluster using docker compose according to this documentation: [https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-docker.html](https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-docker.html)

I created the described files, but after executing:

`docker-compose -f create-certs.yml run --rm create_certs`

I have following error:

```
Exception in thread "main" java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config/certificates/instances.yml
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:374)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:425)
        at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:420)
        at java.base/java.nio.file.Files.newInputStream(Files.java:159)
        at java.base/java.nio.file.Files.newBufferedReader(Files.java:2915)
        at java.base/java.nio.file.Files.newBufferedReader(Files.java:2947)
        at org.elasticsearch.xpack.security.cli.CertificateTool.parseFile(CertificateTool.java:916)
        at org.elasticsearch.xpack.security.cli.CertificateTool.parseAndValidateFile(CertificateTool.java:889)
        at org.elasticsearch.xpack.security.cli.CertificateTool$CertificateCommand.getCertificateInformationList(CertificateTool.java:400)
        at org.elasticsearch.xpack.security.cli.CertificateTool$GenerateCertificateCommand.execute(CertificateTool.java:686)
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125)
        at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:91)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:125)
        at org.elasticsearch.cli.Command.main(Command.java:90)
        at org.elasticsearch.xpack.security.cli.CertificateTool.main(CertificateTool.java:137)
unzip: cannot find or open /certs/bundle.zip, /certs/bundle.zip.zip or /certs/bundle.zip.ZIP.

```

I tried with Docker on Windows and with Ubuntu subsystem on windows

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 11, 2020, 9:13pm UTC](https://discuss.elastic.co/t/running-elasticsearch-using-docker-compose-exception-in-thread-main/219082/2 "2020-03-11T21:13:01Z")

</div>

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