Add is_docker_available helper for silent Docker checks#65732
Add is_docker_available helper for silent Docker checks#65732TALBIYA-PARVEEN wants to merge 1 commit into
Conversation
|
Why do you need it? |
|
@TALBIYA-PARVEEN This PR has been converted to draft because it does not yet meet our Pull Request quality criteria. Issues found:
What to do next:
Converting a PR to draft is not a rejection — it is an invitation to bring the PR up to the project's standards so that maintainer review time is spent productively. There is no rush — take your time and work at your own pace. We appreciate your contribution and are happy to wait for updates. If you have questions, feel free to ask on the Airflow Slack. Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you. |
What does this PR do?
Adds is_docker_available() to dev/breeze/src/airflow_breeze/utils/docker_command_utils.py.
The existing check_docker_is_running() prints console output and calls sys.exit(1) on failure, making it unsuitable as a silent boolean guard.
The new helper returns True/False without side effects, following the same pattern as is_docker_rootless().
Handles three cases:
Was generative AI tooling used to co-author this PR?
Checklist