gpt4 book ai didi

docker - 在OS X上运行带有ElasticSearch的Docker compose给我错误sysctl:设置 key “vm.max_map_count”:只读文件系统

转载 作者:行者123 更新时间:2023-12-02 19:08:41 70 4
gpt4 key购买 nike

在我的OS X上运行Docker时,出现以下错误:

sysctl:设置键“vm.max_map_count”:只读文件系统

我知道在Linux上您可以使用edit sysctl,但是我还没有弄清楚如何在OSX上执行此操作。香港专业教育学院试图在偏好下为Mac内存设置Docker,但这没有任何作用。我也尝试了screen命令,但无济于事。

最佳答案

我只是在猜测,但是您要设置Elasticsearch吗?他们在这里有OSX的明确说明:https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

从上面:

The vm_max_map_count kernel setting needs to be set to at least 262144 for production use. Depending on your platform:
...
OSX with Docker for Mac

The vm_max_map_count setting must be set within the xhyve virtual machine:

$ screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty

Log in with root and no password. Then configure the sysctl setting as you would for Linux:

sysctl -w vm.max_map_count=262144



如果这不是您要找的东西,可以粘贴命令的确切输入和输出吗?

关于docker - 在OS X上运行带有ElasticSearch的Docker compose给我错误sysctl:设置 key “vm.max_map_count”:只读文件系统,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44577473/

70 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com