---
name: container_info
lang: go
domain: infra
version: "1.0.0"
algebraic: product
definition: |
  type ContainerInfo struct {
    ID      string
    Name    string
    Image   string
    Status  string
    State   string
    Ports   string
    Created string
    Labels  map[string]string
  }
description: "Información básica de un contenedor Docker: ID, nombre, imagen, estado, puertos, labels."
tags: [docker, container, infra]
uses_types: []
file_path: "functions/infra/container_info.go"
---

## Ejemplo

```go
c := ContainerInfo{
    ID:     "abc123",
    Name:   "my-app",
    Image:  "nginx:latest",
    Status: "Up 2 hours",
    State:  "running",
    Ports:  "0.0.0.0:8080->80/tcp",
}
```

## Notas

Tipo product que modela la salida de `docker ps`. Los campos mapean directamente a las columnas del formato JSON de Docker.
