Skip to content

[BUG]docker desktop强制退出后sqlbot无限重启 #1300

Description

@a1158086949-maker

SQLBot Version

Run Mode
v1.10.0

Describe the bug
在windows docker中部署,当出现强制退出再启动时,一直在重启。看了日志分析是pgsql在做崩溃恢复,但sqlbot启动命令没有等待,发现数据库连不上就重启。

To Reproduce
Steps to reproduce the behavior:

  1. 在windows中以docker方式部署,具体部署方式参照官方文档中,windows部署步骤。
  2. docker desktop 强制退出再重启后,出现sqlbot容器一直重启状态。

Expected behavior
启动命令增加延时解决了。
docker run -d --name sqlbot --restart unless-stopped -p 18000:8000 -p 18001:8001 -v D:\data\sqlbot\excel:/opt/sqlbot/data/excel -v D:\data\sqlbot\file:/opt/sqlbot/data/file -v D:\data\sqlbot/images:/opt/sqlbot/images -v D:\data\sqlbot/logs:/opt/sqlbot/logs -v D:\data\postgresql:/var/lib/postgresql/data --privileged=true --entrypoint /bin/sh dataease/sqlbot -c "su postgres -c 'postgres -D /var/lib/postgresql/data &' && wait-for-it 127.0.0.1:5432 -t 120 && sleep 60 && cd /opt/sqlbot/app && exec sh start.sh"

新建 文本文档.txt

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions