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.
762 B
762 B
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | tested | tests | test_file_path | file_path | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| docker_list_images | function | go | infra | 1.0.0 | impure | func DockerListImages() ([]ImageInfo, error) | Lista las imágenes Docker disponibles localmente. Parsea la salida JSON de docker images. |
|
|
|
false | error_go_core |
|
false | functions/infra/docker_list_images.go |
Ejemplo
images, err := DockerListImages()
if err != nil {
log.Fatal(err)
}
for _, img := range images {
fmt.Printf("%s:%s (%s)\n", img.Repository, img.Tag, img.Size)
}