potiuk commented on code in PR #33547:
URL: https://github.com/apache/airflow/pull/33547#discussion_r1299395951
##########
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:
23.0.6[🔗](https://docs.docker.com/engine/release-notes/23.0/#2306)
`2023-05-08`
Released 3 months ago.
I think for a development environment it's sortof enough. We can always
experiment and go back if people will complain.
We could also raise the docker-compose min version - but that should be done
separately, as we would have to force docker-compose v2. Which I think it's
about the time to do anyway.
##########
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:
23.0.6[🔗](https://docs.docker.com/engine/release-notes/23.0/#2306)
`2023-05-08`
Released 3 months ago.
I think for a development environment it's sortof enough. We can always
experiment and go back if people will complain.
We could also raise the docker-compose min version - but that should be done
separately, as we would have to force docker-compose v2. Which I think it's
about the time to do anyway.
--
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]