72 lines
1.9 KiB
Markdown
72 lines
1.9 KiB
Markdown
# Docker Usage Guide - Los Vecinos de Cisco
|
|
|
|
## 🐳 Imagen Docker Creada
|
|
|
|
```bash
|
|
REPOSITORY TAG IMAGE ID CREATED SIZE
|
|
localhost/los-vecinos-de-cisco develop f3b4044bcfa4 2 minutes ago 805MB
|
|
```
|
|
|
|
## 🚀 Cómo Usar la Imagen
|
|
|
|
### Uso básico
|
|
```bash
|
|
docker run --rm --network host localhost/los-vecinos-de-cisco:develop \
|
|
--host 192.168.1.10 \
|
|
--username admin \
|
|
--password cisco123
|
|
```
|
|
|
|
### Con hostname personalizado
|
|
```bash
|
|
docker run --rm --network host localhost/los-vecinos-de-cisco:develop \
|
|
--host 192.168.1.10 \
|
|
--username admin \
|
|
--password cisco123 \
|
|
--hostname SW-CORE-001
|
|
```
|
|
|
|
### Con modo debug
|
|
```bash
|
|
docker run --rm --network host localhost/los-vecinos-de-cisco:develop \
|
|
--host 192.168.1.10 \
|
|
--username admin \
|
|
--password cisco123 \
|
|
--debug
|
|
```
|
|
|
|
### Modo silencioso (solo JSON)
|
|
```bash
|
|
docker run --rm --network host localhost/los-vecinos-de-cisco:develop \
|
|
--host 192.168.1.10 \
|
|
--username admin \
|
|
--password cisco123 \
|
|
--quiet
|
|
```
|
|
|
|
## 🔧 Características de Compatibilidad SSH
|
|
|
|
La imagen incluye soporte automático para:
|
|
- ✅ **diffie-hellman-group1-sha1** para dispositivos antiguos
|
|
- ✅ **ssh-rsa** host key algorithms
|
|
- ✅ Compatible con IOS 12.x y 15.x
|
|
- ✅ Mantiene compatibilidad con dispositivos modernos
|
|
|
|
## 📝 Notas Importantes
|
|
|
|
1. **Plataforma**: Construida para `linux/amd64`
|
|
2. **Red**: Usar `--network host` para acceso directo a dispositivos
|
|
3. **Compatibilidad**: Funciona con Python 3.6+ en Rocky Linux 8
|
|
4. **Salida**: JSON por stdout, logs por stderr
|
|
|
|
## 🧪 Testing
|
|
|
|
Para verificar que funciona:
|
|
```bash
|
|
# Ver ayuda
|
|
docker run --rm localhost/los-vecinos-de-cisco:develop --help
|
|
|
|
# Test rápido (fallará por falta de dispositivo, pero verifica imagen)
|
|
docker run --rm localhost/los-vecinos-de-cisco:develop \
|
|
--host test --username test --password test --timeout 1
|
|
``` |