fix: 解决低版本 dockerd 命令不兼容的问题 (#6824)

pull/6825/head
ssongliu 2024-10-23 18:34:19 +08:00 committed by GitHub
parent 208414704d
commit 96cf46d834
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View File

@ -430,6 +430,9 @@ func validateDockerConfig() error {
return nil
}
stdout, err := cmd.Exec("dockerd --validate")
if strings.Contains(stdout, "unknown flag: --validate") {
return nil
}
if err != nil || (stdout != "" && strings.TrimSpace(stdout) != "configuration OK") {
return fmt.Errorf("Docker configuration validation failed, err: %v", stdout)
}

View File

@ -560,7 +560,7 @@ const message = {
updateHelper1: '',
updateHelper2: '1. ',
updateHelper3: '2. ',
updateHelper4: '',
updateHelper4: '',
containerList: '',
operatorHelper: ' {0} ',
operatorAppHelper:

View File

@ -562,7 +562,7 @@ const message = {
updateHelper1: '',
updateHelper2: '1. ',
updateHelper3: '2. ',
updateHelper4: '',
updateHelper4: '',
containerList: '',
operatorHelper: ' {0} ',
operatorAppHelper: