系統環境 QNAP 威聯通 QTS 5.1.1.2491
Container Station版本 3.0.5.623 (2023/08/30)
裝完Mysql 8.1.0-1.e18容器之後
在終端機一直看到此訊息
[ERROR] [Entrypoint]: Database is uninitialized and password option is not specified You need to specify one of the following as an environment variable:
- MYSQL_ROOT_PASSWORD
- MYSQL_ALLOW_EMPTY_PASSWORD
- MYSQL_RANDOM_ROOT_PASSWORD
參考文章之後
https://blog.csdn.net/weixin_36829761/article/details/124900788
原來是Mysql 8 異動了
故在建立容器之前
進階設定→環境中
加入 變數 MYSQL_ROOT_PASSWORD 值 Password

補充加入for Gitea使用的 MYSQL_DATABASE=gitea