instantbox-frontend
instantbox-frontend copied to clipboard
关于容器存活时间
src/components/SelectSystemConfig/SelectForm.js
timeout: [
{
required: true,
message: this.t('prompt.enter-ttl-in-hours')
},
{
validator: (rule, value, callback) => {
if (
(/^\d+$/g.test(value) && value >= 1 && value <= 24) ||
value === ""
) {
return callback();
}
callback(this.t('sentence.err-ttl-in-hours'));
},
message: this.t('sentence.msg-ttl-in-hours')
}
]
请问您这其中设置容器存活时间的代码是怎么样的呢?这个文件中的 value <= 24 修改为240,创建了一个48h的容器,但是仍然没有成功存活超过24h
emm, 应该先去看 instantbox 来着