在 docker 中禁用 opensearch 的安全插件
相关连接: https://opensearch.org/docs/latest/security/configuration/disable/
- 使用 
docker ps找到当前运行的 container 的 id,假设是657ba743c58d - 使用 
docker exec -u0 -it 657ba743c58d /bin/bash登录到容器内部 - 找到 opensearch 的配置文件,通常是在 
/usr/share/opensearch/config/opensearch.yml,参考 https://opensearch.org/docs/latest/install-and-configure/configuring-opensearch/index/#configuration-file - 然后使用 
/usr/share/opensearch/config/opensearch.yml编辑该文件,把plugins.security.disabled: true放到配置文件末尾,保存文件。- 如果在编辑文件的时候,提示没有安装 vim,可以使用 
yum install -y vim安装 vim 
 - 如果在编辑文件的时候,提示没有安装 vim,可以使用 
 - 使用 
docker restart 657ba743c58d重启容器