Docker fails when stopping and restarting #19160
-
使用docker镜像可以正常up,停止后再启动出现连接失败问题,与 #17286 比较类似,请问这个是什么原因? fe日志如下
be日志如下
环境 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
You need to set macOS with Docker for MacThe
To exit the Windows and macOS with Docker DesktopThe
Windows with Docker Desktop WSL 2 backendThe If you are on Windows 10 before version 22H2, or if you are on Windows 10 version 22H2 using the built-in version of WSL, you must either manually set it every time you restart Docker before starting your ElasticSearch container, or (if you do not wish to do so on every restart) you must globally set every WSL2 instance to have the To manually set it every time you reboot, you must run the following commands in a command prompt or PowerShell window every time you restart Docker:
If you are on these versions of WSL and you do not want to have to run those commands every time you restart Docker, you can globally change every WSL distribution with this setting by modifying your %USERPROFILE%.wslconfig as follows:
This will cause all WSL2 VMs to have that setting assigned when they start. If you are on Windows 11, or Windows 10 version 22H2 and have installed the Microsoft Store version of WSL, you can modify the /etc/sysctl.conf within the "docker-desktop" WSL distribution, perhaps with commands like this:
and appending a line which reads:
|
Beta Was this translation helpful? Give feedback.
-
感谢回复,我已经设置了这个参数了
doris-be 容器内
|
Beta Was this translation helpful? Give feedback.
-
我这写一下复现流程
可以观察到fe和be都正常启动
观察日志,最终可以正常运行,mysql连接后
这次测试观察到似乎是修改root密码触发了这个问题 |
Beta Was this translation helpful? Give feedback.
-
这个问题有计划解决吗 |
Beta Was this translation helpful? Give feedback.
You can't change password in this Docker IMAGE. Because in BE initiation process, its will execute
show frontends
using mysql-client. Therefore, if you change the password, the initiation bash script couldn't execute sql. So an error occurred and BE couldn't startup normally.