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.
756 B
756 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_remove_container | function | go | infra | 1.0.0 | impure | func DockerRemoveContainer(nameOrID string, force bool) error | Elimina un contenedor Docker. Con force=true puede eliminar contenedores en ejecución (equivale a docker rm -f). |
|
false | error_go_core |
|
false | functions/infra/docker_remove_container.go |
Ejemplo
// Eliminar contenedor detenido
err := DockerRemoveContainer("old-app", false)
// Forzar eliminación
err = DockerRemoveContainer("stuck-app", true)