[ Agent ] [ App ] - offline build chrony server
This commit is contained in:
@@ -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 !")
|
||||
|
||||
Reference in New Issue
Block a user