instantbox-frontend icon indicating copy to clipboard operation
instantbox-frontend copied to clipboard

关于容器存活时间

Open Check-LC opened this issue 1 year ago • 1 comments

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

Check-LC avatar Jan 24 '24 03:01 Check-LC

emm, 应该先去看 instantbox 来着

Check-LC avatar Jan 24 '24 03:01 Check-LC