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

docker: support memory limit

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

查看文件

@@ -8,6 +8,7 @@ import (
"path/filepath"
"testing"
"time"
units "github.com/docker/go-units"
"github.com/codeskyblue/go-sh"
. "github.com/smartystreets/goconvey/convey"
@@ -77,6 +78,7 @@ sleep 20
volumes: []string{
fmt.Sprintf("%s:%s", cmdScript, "/bin/cmd.sh"),
},
memoryLimit: 512 * units.MiB,
}
provider.AddHook(d)
So(provider.Docker(), ShouldNotBeNil)