mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
fix: force remove all conflicting containers before docker compose up
Former-commit-id: b9996801db2592eeb4454789cdf8ec1fa6c642ee
This commit is contained in:
@@ -76,7 +76,10 @@ log_ok "Phase 2 complete"
|
||||
log_info "Phase 3/6: Docker infrastructure"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
# Stop and remove any existing v2test containers (clean restart)
|
||||
# Stop and remove any existing v2test containers and conflicting containers
|
||||
log_info "Cleaning up existing containers..."
|
||||
docker rm -f v2test-consul v2test-redis v2test-kafka v2test-zookeeper v2test-nginx \
|
||||
cw-frontend-local-nginx v2-test-redis 2>/dev/null || true
|
||||
docker compose -f docker-compose.infra.yml down --remove-orphans 2>/dev/null || true
|
||||
|
||||
docker compose -f docker-compose.infra.yml up -d
|
||||
|
||||
Reference in New Issue
Block a user