1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-06 06:26:46 +00:00

docker: support memory limit

这个提交包含在:
Miao Wang
2021-07-12 22:26:13 +08:00
父节点 3ce5c2ede3
当前提交 f0ccdc47dc
共有 3 个文件被更改,包括 8 次插入0 次删除

查看文件

@@ -13,6 +13,7 @@ type dockerHook struct {
image string
volumes []string
options []string
memoryLimit MemBytes
}
func newDockerHook(p mirrorProvider, gCfg dockerConfig, mCfg mirrorConfig) *dockerHook {
@@ -35,6 +36,7 @@ func newDockerHook(p mirrorProvider, gCfg dockerConfig, mCfg mirrorConfig) *dock
image: mCfg.DockerImage,
volumes: volumes,
options: options,
memoryLimit: mCfg.MemoryLimit,
}
}