Ensure Docker is running if Docker mode is enabled. Returns: True if Docker is ready (or not needed), False if Docker failed to start
(self)
| 434 | return hashlib.sha256(normalized_path.encode()).hexdigest()[:8] |
| 435 | |
| 436 | def ensure_docker_running(self) -> bool: |
| 437 | """Ensure Docker is running if Docker mode is enabled. |
| 438 | |
| 439 | Returns: |
| 440 | True if Docker is ready (or not needed), False if Docker failed to start |
| 441 | """ |
| 442 | if not self.use_docker: |
| 443 | return True # Docker not needed |
| 444 | |
| 445 | print("🐳 Checking Docker availability...") |
| 446 | success, message = attempt_start_docker() |
| 447 | |
| 448 | if success: |
| 449 | print(f"✓ {message}") |
| 450 | return True |
| 451 | else: |
| 452 | print(f"❌ Docker Error: {message}") |
| 453 | print() |
| 454 | print("Unable to start Docker automatically.") |
| 455 | print("Please start Docker Desktop manually and try again.") |
| 456 | return False |
| 457 | |
| 458 | def run_callgrind(self) -> bool: |
| 459 | """Run callgrind analysis""" |
no test coverage detected