MCPcopy Create free account
hub / github.com/FastLED/FastLED / ensure_docker_running

Method ensure_docker_running

ci/profile_runner.py:436–456  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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"""

Callers 1

runMethod · 0.95

Calls 2

attempt_start_dockerFunction · 0.90
printFunction · 0.50

Tested by

no test coverage detected