Skip to content

Commit

Permalink
fix: 解决低版本 dockerd 命令不兼容的问题 (#6824)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssongliu authored Oct 23, 2024
1 parent 2084147 commit 96cf46d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions backend/app/service/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lang/modules/tw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ const message = {
updateHelper1: '檢測到該容器來源於應用商店請注意以下兩點:',
updateHelper2: '1. 當前修改內容不會同步到應用商店的已安裝應用。',
updateHelper3: '2. 如果在已安裝頁面修改應用當前編輯的部分內容將失效。',
updateHelper4: '編輯容器需要重建任何未持久化的數據將丟失是否繼續操作?',
updateHelper4: '編輯容器需要重建任何未持久化的數據將丟失是否繼續?',
containerList: '容器列表',
operatorHelper: '將對以下容器進行 {0} 操作是否繼續?',
operatorAppHelper:
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lang/modules/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ const message = {
updateHelper1: '检测到该容器来源于应用商店请注意以下两点:',
updateHelper2: '1. 当前修改内容不会同步到应用商店的已安装应用。',
updateHelper3: '2. 如果在已安装页面修改应用当前编辑的部分内容将失效。',
updateHelper4: '编辑容器需要重建任何未持久化的数据将丢失是否继续操作?',
updateHelper4: '编辑容器需要重建任何未持久化的数据将丢失是否继续?',
containerList: '容器列表',
operatorHelper: '将对以下容器进行 {0} 操作是否继续?',
operatorAppHelper:
Expand Down

0 comments on commit 96cf46d

Please sign in to comment.