MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / PullImageWithProcess

Method PullImageWithProcess

agent/utils/docker/docker.go:318–324  ·  view source on GitHub ↗
(task *task.Task, imageName string)

Source from the content-addressed store, hash-verified

316}
317
318func (c Client) PullImageWithProcess(task *task.Task, imageName string) error {
319 options := image.PullOptions{}
320 if authStr, ok := loadRegistryAuthFromDockerConfig(imageName); ok {
321 options.RegistryAuth = authStr
322 }
323 return c.PullImageWithProcessAndOptions(task, imageName, options)
324}
325
326func logProcess(progress map[string]interface{}, task *task.Task) {
327 status, _ := progress["status"].(string)

Callers 3

pullComposeImagesFunction · 0.95
upgradeInstallFunction · 0.95
upAppFunction · 0.95

Implementers 1

terminalAIClientagent/utils/terminal/ai/client.go

Tested by

no test coverage detected