Skip to content

关于容器存活时间 #18

@Check-LC

Description

@Check-LC
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions