Get the docker command to use (as a string). Returns: The path to the docker executable, or "docker" if not found (will fail later with clear error)
()
| 57 | |
| 58 | |
| 59 | def get_docker_command() -> str: |
| 60 | """Get the docker command to use (as a string). |
| 61 | |
| 62 | Returns: |
| 63 | The path to the docker executable, or "docker" if not found (will fail later with clear error) |
| 64 | """ |
| 65 | docker_exe = find_docker_executable() |
| 66 | if sys.platform == "win32": |
| 67 | return "docker" |
| 68 | return docker_exe or "docker" |
| 69 | |
| 70 | |
| 71 | def is_docker_available() -> bool: |