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.
896 B
896 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_inspect_container | function | go | infra | 1.0.0 | impure | func DockerInspectContainer(nameOrID string) (map[string]any, error) | Devuelve los detalles completos de un contenedor Docker como mapa JSON genérico. Útil para inspeccionar configuración, red, volumes, etc. |
|
false | error_go_core |
|
false | functions/infra/docker_inspect_container.go |
Ejemplo
info, err := DockerInspectContainer("my-app")
if err != nil {
log.Fatal(err)
}
fmt.Println(info["State"])
Notas
Devuelve map[string]any en vez de un struct tipado para maximizar flexibilidad. El caller puede navegar el JSON libremente.