refactor: replace deprecated docker-compose with docker compose across repository
This commit is contained in:
@@ -246,7 +246,7 @@ networks:
|
||||
### Pitfall 5: Network Cleanup Between Tests
|
||||
**What goes wrong:** Previous test networks interfere with new tests
|
||||
**Why it happens:** Networks not removed between test runs, container references stale
|
||||
**How to avoid:** Always run `docker-compose down -v` to remove networks, include cleanup in tests
|
||||
**How to avoid:** Always run `docker compose down -v` to remove networks, include cleanup in tests
|
||||
**Warning signs:** "Network already exists" errors, IP conflicts in subnet allocation
|
||||
|
||||
## Code Examples
|
||||
@@ -373,8 +373,8 @@ else
|
||||
echo "WARNING: No port bindings found or all public"
|
||||
fi
|
||||
|
||||
# Verify with docker-compose config
|
||||
docker-compose -f "$compose_file" config 2>/dev/null || true
|
||||
# Verify with docker compose config
|
||||
docker compose -f "$compose_file" config 2>/dev/null || true
|
||||
|
||||
echo "INF-02 verification complete"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user