# Check containers in detail param( [string]$Server = "45.249.208.118", [string]$User = "root", [string]$Password = "lxvhNYFZ4160", [string]$ProjectPath = "/root/youyidian-3d" ) $plinkPath = "C:\Program Files\PuTTY\plink.exe" Write-Host "Detailed container check..." -ForegroundColor Yellow Write-Host "" # Check all containers Write-Host "1. All Docker containers:" -ForegroundColor Cyan $cmd = "docker ps -a" & $plinkPath -ssh -pw $Password -batch "${User}@${Server}" $cmd Write-Host "" # Check if build completed Write-Host "2. Docker images:" -ForegroundColor Cyan $cmd = "docker images | grep -E 'youyidian|node' | head -5" & $plinkPath -ssh -pw $Password -batch "${User}@${Server}" $cmd Write-Host "" # Try to start containers Write-Host "3. Attempting to start containers..." -ForegroundColor Cyan $cmd = "cd $ProjectPath; docker compose up -d 2>&1" & $plinkPath -ssh -pw $Password -batch "${User}@${Server}" $cmd Write-Host "" # Check status again Write-Host "4. Container status after start:" -ForegroundColor Cyan Start-Sleep -Seconds 3 $cmd = "cd $ProjectPath; docker compose ps" & $plinkPath -ssh -pw $Password -batch "${User}@${Server}" $cmd Write-Host "" # Check logs Write-Host "5. Application logs:" -ForegroundColor Cyan $cmd = "cd $ProjectPath; docker compose logs app --tail=30 2>&1" & $plinkPath -ssh -pw $Password -batch "${User}@${Server}" $cmd Write-Host "" Write-Host "Check complete." -ForegroundColor Green