taosdata / taosdata/TDengine

docker删除容器后再次创建容器无法启动容器

Open
#34,115 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
25.1k
Forks
5k
Avg merge
4d 59m
Merged PRs (30d)
7

Description

你好,我使用以下命令创建一个docker容器出来,并挂载数据目录,它能正常运行。
docker run -d -v /data/taos/dnode/data:/var/lib/taos -v /data/taos/config:/etc/taos -v /data/taos/dnode/log:/var/log/taos -p 6030:6030 -p 6041:6041 -p 6043:6043 -p 6044-6049:6044-6049 -p 6044-6045:6044-6045/udp -p 6060:6060 -e TZ=Asia/Shanghai tdengine/tsdb:3.3.8.8
然后我创建一个名称为test的database,然后我结束运行这个容器,并删除这个容器,使用以上命令再次创建一个容器,然后发现容器启动失败,我的预期应该是能保留我上一步骤创建的test的database并能正常启动才对,目前无法正常启动,且docker logs无任何输出,我不知道该如何解决问题,请帮帮我
os: centos 7.6 x86
docker:24.0.4

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.

Research direction

Start by reproducing the reported docker run sequence on CentOS 7.6 with Docker 24.0.4, including the mounted /data/taos directories and TDengine image 3.3.8.8. Inspect the recreated container state, mounted data and configuration, and available Docker diagnostics; done means the container starts after deletion and recreation while preserving the test database.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.