feat: docker_create_network y docker_remove_network en infra

Funciones para crear y eliminar redes Docker. DockerCreateNetwork
usa bridge como driver por defecto. Necesarias para pipelines que
orquestan múltiples contenedores en red compartida.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-28 17:13:45 +01:00
parent 9ba1f86c34
commit 79a2a21c5e
4 changed files with 103 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
---
name: docker_remove_network
kind: function
lang: go
domain: infra
version: "1.0.0"
purity: impure
signature: "func DockerRemoveNetwork(nameOrID string) error"
description: "Elimina una red Docker por nombre o ID."
tags: [docker, network, remove, 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_remove_network.go"
---
## Ejemplo
```go
err := DockerRemoveNetwork("my-app-net")
if err != nil {
log.Fatal(err)
}
```