在线安装出现kafka is unhealthy

通过 如下方式安装:
curl -sSL https://resource.fit2cloud.com/metersphere/metersphere/releases/latest/download/quick_start.sh | bash

出现如下错误:
dependency failed to start: container kafka is unhealthy

docker logs发现如下错误信息:

===> User
uid=1000(appuser) gid=1000(appuser)
===> Setting default values of environment variables if not already set.
===> Configuring …
Running in KRaft mode…
/opt/kafka/config/ file not writable
===> User
uid=1000(appuser) gid=1000(appuser)
===> Setting default values of environment variables if not already set.
===> Configuring …
Running in KRaft mode…
/opt/kafka/config/ file not writable
===> User
uid=1000(appuser) gid=1000(appuser)
===> Setting default values of environment variables if not already set.
===> Configuring …
Running in KRaft mode…
/opt/kafka/config/ file not writable

从报错来看,有一些环境变量未设置,以及有个配置文件无法写入,建议使用离线安装包进行部署。
参考文档:
https://metersphere.io/docs/v2.x/installation/offline_installation/

  1. 升级 docker 版本
  2. 如果升级 docker 版本不行的话,修改 docker-compose.yaml 为特权模式,
    privileged: true