请求在没有卷曲标志的情况下容器化开发搜索

发布于 2025-02-10 19:24:34 字数 745 浏览 0 评论 0原文

I can interact with my open search docker container via curl -XGET https://localhost:9200 -u 'admin:admin' --insecure but no use when I want to automate requests to it.. 。

命令:

curl -XGET https://localhost:9200

error:
    curl: (60) SSL certificate problem: unable to get local issuer certificate
    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.

我确实进入了该链接,而不是解决方案,只是一种解释,将我扔进了我刚才能够离开的兔子洞。

可怕的是,这以前发生在我身上,我修复了它,但它不在码头容器上,我不记得我如何修复它。

I can interact with my open search docker container via curl -XGET https://localhost:9200 -u 'admin:admin' --insecure but no use when I want to automate requests to it... I need to be able to access it, even via HTTP is fine (not secure meaning not HTTPS).

command:

curl -XGET https://localhost:9200

error:
    curl: (60) SSL certificate problem: unable to get local issuer certificate
    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.

I did go into that link, not a solution, just an explanation that threw me into a rabbit hole I was able to get out just now.

The awful thing is that this happened to me before and I fixed it, but it was not on a docker container and I don't remember how I fixed it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情场扛把子 2025-02-17 19:24:34

disable Security 在您的Dockerfile中:

RUN echo "plugins.security.disabled: true" >> /usr/share/opensearch/config/opensearch.yml

您可以 disable Security > 通过http:// localhost:9200之后。我这样做是为了设置我的数据,然后将/usr/share/opensearch/data加载到具有安全性的其他容器中。

You can disable security in your Dockerfile then:

RUN echo "plugins.security.disabled: true" >> /usr/share/opensearch/config/opensearch.yml

Your OpenSearch will be accessible via http://localhost:9200 after. I do this to setup my data, and then load /usr/share/opensearch/data in an other container set up with security.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文