0402e0fdbe
Funciones Docker: list/start/stop/remove containers, list/pull/remove images, inspect, logs, run. Tipos: ContainerInfo e ImageInfo. Pre-existentes en el dominio infra, ahora registrados.
31 lines
640 B
Markdown
31 lines
640 B
Markdown
---
|
|
name: docker_pull_image
|
|
kind: function
|
|
lang: go
|
|
domain: infra
|
|
version: "1.0.0"
|
|
purity: impure
|
|
signature: "func DockerPullImage(image string) error"
|
|
description: "Descarga una imagen Docker desde el registry remoto (Docker Hub u otro configurado). Acepta formato image:tag."
|
|
tags: [docker, image, pull, infra]
|
|
uses_functions: []
|
|
uses_types: []
|
|
returns: []
|
|
returns_optional: false
|
|
error_type: "error_go_core"
|
|
imports: [fmt, os/exec, strings]
|
|
tested: false
|
|
tests: []
|
|
test_file_path: ""
|
|
file_path: "functions/infra/docker_pull_image.go"
|
|
---
|
|
|
|
## Ejemplo
|
|
|
|
```go
|
|
err := DockerPullImage("nginx:latest")
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
```
|