Commit b910a421 authored by duanjinfei's avatar duanjinfei

update docker server config parse

parent 2cb0da37
......@@ -121,8 +121,7 @@ func (t *TaskHandler) ComputeTaskHandler(taskMsg *nodeManagerV1.PushTaskMessage)
isImageRunExist := false
for _, container := range containers {
if container.ImageID == imageId {
//taskCmd.ApiUrl = fmt.Sprintf(taskCmd.ApiUrl, container.Ports[0].PublicPort)
taskCmd.ApiUrl = fmt.Sprintf("http://host.docker.internal:5001")
taskCmd.ApiUrl = fmt.Sprintf(taskCmd.ApiUrl, container.Ports[0].PublicPort)
isImageRunExist = true
break
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment