Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

关于项目挂载jobs、libs、web 目录后启动问题 #94

Open
liuzhen214 opened this issue May 31, 2022 · 0 comments
Open

关于项目挂载jobs、libs、web 目录后启动问题 #94

liuzhen214 opened this issue May 31, 2022 · 0 comments

Comments

@liuzhen214
Copy link

我创建容器的命令:
docker run -itd --name stock0
-v /data/stock0/notebooks:/data/notebooks
-v /data/stock0/logs:/data/logs
-v /data/stock0/jobs:/data/stock/jobs
-v /data/stock0/libs:/data/stock/libs
-v /data/stock0/web:/data/stock/web *

-p 9099:8888
-p 9098:9999
-e MYSQL_HOST=192.168.*.68
-e MYSQL_USER=stock
-e MYSQL_PWD=stock
****
-e MYSQL_DB=stock_data0
pythonstock/pythonstock:latest

我不挂载:
-v /data/stock0/jobs:/data/stock/jobs
-v /data/stock0/libs:/data/stock/libs
-v /data/stock0/web:/data/stock/web
这3个目录,容器启动就会创建3个表,能在/data/stock0/logs目录查看到程序运行产生的日志文件
image

image

加上(对应目录文件我都上传到相应目录并用docker stop stock0于docker start stock0命令停止+重启容器)就不创建表+无日志文件输出,这是什么原因?

我的linux系统信息:
image

@liuzhen214 liuzhen214 changed the title 关于项目启动 关于项目挂载jobs、libs、web 目录后启动问题 May 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant