[ Agent ] [ App ] - offline build chrony server

This commit is contained in:
zeaslity
2023-12-15 14:13:41 +08:00
parent 18a42007c1
commit 5304326a05
3 changed files with 11 additions and 11 deletions

View File

@@ -1808,10 +1808,10 @@ func (op *AgentOsOperator) installChronyByDockerExec(funcArgs []string) (bool, [
}
}
// check image exists
if !BasicDockerImageExists("simonrupf/chronyd", "0.4.3") {
parseIP := net.ParseIP(funcArgs[0])
if parseIP == nil {
return false, []string{
"[installChronyByDockerExec] - docker image not exists !",
"[installChronyByDockerExec] - ip args error !",
}
}
@@ -1825,7 +1825,7 @@ func (op *AgentOsOperator) installChronyByDockerExec(funcArgs []string) (bool, [
"--publish=123:123/udp",
"--env=NTP_SERVERS=\"ntp1.aliyun.com,ntp2.aliyun.com,ntp3.aliyun.com,ntp4.aliyun.com\"",
"--env=LOG_LEVEL=0",
"simonrupf/chronyd",
funcArgs[0] + "8033/cmii/chronyd:0.4.3",
})
if !ok {
return false, append(resultLog, "[installChronyByDockerExec] - docker chrony run error !")