dataease / dataease/SQLBot

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

Open
#1,300 0 comments 0 reactions 2 assignees View on GitHub

@xuwei-fit2cloud is already working on this.

Since Jul 30, 2026.

bug
Dominant language
JavaScript
Stars
6.8k
Forks
882
Avg merge
4h 37m
Merged PRs (30d)
32

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.