Check if Docker is available and running
(self)
| 47 | return str(path) |
| 48 | |
| 49 | def check_docker_available(self) -> bool: |
| 50 | """Check if Docker is available and running""" |
| 51 | try: |
| 52 | result = RunningProcess.run( |
| 53 | ["docker", "version"], cwd=None, check=False, timeout=5 |
| 54 | ) |
| 55 | return result.returncode == 0 |
| 56 | except (RuntimeError, FileNotFoundError): |
| 57 | return False |
| 58 | |
| 59 | def check_image_exists(self, image_name: str) -> bool: |
| 60 | """Check if Docker image exists locally""" |
no test coverage detected