# Run elastic in docker

**URL:** <https://discuss.elastic.co/t/run-elastic-in-docker/332720>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [May 6, 2023, 6:58pm UTC](https://discuss.elastic.co/t/run-elastic-in-docker/332720 "2023-05-06T18:58:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fatiha](https://avatars.discourse-cdn.com/v4/letter/f/bbe5ce/32.png) [@Fatiha](https://discuss.elastic.co/u/Fatiha)\
**Post date:** [May 6, 2023, 6:58pm UTC](https://discuss.elastic.co/t/run-elastic-in-docker/332720/1 "2023-05-06T18:58:41Z")

</div>

HI i run my elastic in docker but when i tap this command

```auto
curl --cacert http_ca.crt -u elastic https://localhost:9200
Enter host password for user 'elastic':

```

i have this problem:

```auto
curl: (60) schannel: CertGetCertificateChain trust error CERT_TRUST_REVOCATION_STATUS_UNKNOWN
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above

```

.

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [May 8, 2023, 2:35am UTC](https://discuss.elastic.co/t/run-elastic-in-docker/332720/2 "2023-05-08T02:35:58Z")

</div>

I believe you're missing the following flag:

```auto
% curl --help all | grep -- --insecure
 -k, --insecure Allow insecure server connections
%
```

---

<div class="post-metadata">

**Author:** ![Sunile\_Manjee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sunile_manjee/32/111461_2.png) [@Sunile\_Manjee](https://discuss.elastic.co/u/Sunile_Manjee)\
**Post date:** [May 12, 2023, 3:48am UTC](https://discuss.elastic.co/t/run-elastic-in-docker/332720/3 "2023-05-12T03:48:55Z")

</div>

Please try this

```auto
curl --cacert http_ca.crt -u elastic https://localhost:9200 --insecure

```

---

<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:** [June 9, 2023, 3:49am UTC](https://discuss.elastic.co/t/run-elastic-in-docker/332720/4 "2023-06-09T03:49:03Z")

</div>

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