# Run in Docker with TLS enabled - does not successfully launch, fix found

**URL:** <https://discuss.elastic.co/t/run-in-docker-with-tls-enabled-does-not-successfully-launch-fix-found/281728>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [August 17, 2021, 4:55pm UTC](https://discuss.elastic.co/t/run-in-docker-with-tls-enabled-does-not-successfully-launch-fix-found/281728 "2021-08-17T16:55:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![newschapmj1](https://avatars.discourse-cdn.com/v4/letter/n/dbc845/32.png) [@newschapmj1](https://discuss.elastic.co/u/newschapmj1)\
**Post date:** [August 17, 2021, 4:55pm UTC](https://discuss.elastic.co/t/run-in-docker-with-tls-enabled-does-not-successfully-launch-fix-found/281728/1 "2021-08-17T16:55:49Z")

</div>

> **[Running the Elastic Stack on Docker | Getting Started \[7.14\] | Elastic](https://www.elastic.co/guide/en/elastic-stack-get-started/7.14/get-started-docker.html)**

Hope this helps someone, or me when I forget!

I was running this on Docker Desktop, on Win 11

Part II, Run in Docker with TLS enabled

Step 3 worked normally  
Step 4  
`docker-compose -f elastic-docker-tls.yml up -d

Creating volume "es\_data01" with local driver  
Creating volume "es\_data02" with local driver  
Creating volume "es\_data03" with local driver  
Creating es03 ... done  
Creating es02 ... done  
Creating es01 ... done

ERROR: for kib01 Container "3e5e740ea3d9" is unhealthy.  
ERROR: Encountered errors while bringing up the project

* * *

I then went back to Part 1 and tried without TLS

At step 3 it started to launch and the got error 78  
I Googled this and ran this from a Windows terminal

```auto
wsl -d docker-desktop
sysctl -w vm.max_map_count=262144

```

===============

Now both part 2 and part 1 run normally as expected

---

<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:** [September 14, 2021, 4:56pm UTC](https://discuss.elastic.co/t/run-in-docker-with-tls-enabled-does-not-successfully-launch-fix-found/281728/2 "2021-09-14T16:56:44Z")

</div>

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