Commit 2cb0da37 authored by duanjinfei's avatar duanjinfei

update docker server config parse

parent 9b154ceb
......@@ -121,7 +121,8 @@ 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(taskCmd.ApiUrl, container.Ports[0].PublicPort)
taskCmd.ApiUrl = fmt.Sprintf("http://host.docker.internal:5001")
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