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

优化关于docker的配置文件映射问题 #37

Closed
Jonnyan404 opened this issue Jun 1, 2022 · 2 comments
Closed

优化关于docker的配置文件映射问题 #37

Jonnyan404 opened this issue Jun 1, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Jonnyan404
Copy link

  1. docker不建议直接挂载文件,应改为挂载目录.

原因: 当配置文件修改时,文件inode会改变,而容器仅存储了首次挂载的inode,导致读取不到而启动失败.

  1. 建议配置文件自动生成.

可采用入口点脚本作shell判断实现.

@qwqcode qwqcode transferred this issue from ArtalkJS/Artalk Jun 6, 2022
@qwqcode qwqcode added the enhancement New feature or request label Jun 6, 2022
@qwqcode
Copy link
Member

qwqcode commented Jun 6, 2022

参考:moby/moby#15793

qwqcode referenced this issue Jun 6, 2022
…single file

Signed-off-by: qwqcode <qwqcode@gmail.com>
@qwqcode qwqcode closed this as completed Jun 6, 2022
@qwqcode
Copy link
Member

qwqcode commented Jun 7, 2022

新版镜像已推送

v2.1.9

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants