Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于容器存活时间 #18

Open
Check-LC opened this issue Jan 24, 2024 · 1 comment
Open

关于容器存活时间 #18

Check-LC opened this issue Jan 24, 2024 · 1 comment

Comments

@Check-LC
Copy link

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
Copy link
Author

emm, 应该先去看 instantbox 来着

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant