potiuk commented on code in PR #33547:
URL: https://github.com/apache/airflow/pull/33547#discussion_r1299391707
##########
dev/breeze/src/airflow_breeze/utils/docker_command_utils.py:
##########
@@ -804,23 +805,34 @@ def autodetect_docker_context():
:return: name of the docker context to use
"""
- output = run_command(["docker", "context", "ls", "-q"],
capture_output=True, check=False, text=True)
- if output.returncode != 0:
+ result = run_command(
+ ["docker", "context", "ls", "--format=json"],
Review Comment:
Maybe actually we could leave it as is but raise the min-docker version
requirement though (but we need to figure out in which version of docker it has
been added. I think evan if it is relatively recent addition, we can actually
raise the bar a little as we have not updated the min docker version for quite
a while. The worst thing, the users will just have to update their docker
following instructions on docker website (and I think we already direct the
users there when min-version is not reached).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]