This is an automated email from the ASF dual-hosted git repository.
amoghdesai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 2454f6efe1f Add rancher-desktop to PREFERRED_CONTEXTS in
docker_command_utils (#56525)
2454f6efe1f is described below
commit 2454f6efe1f53c04119a280d6177d82e3ba499a9
Author: sage-ingle-ck <[email protected]>
AuthorDate: Thu Oct 9 20:21:27 2025 -0400
Add rancher-desktop to PREFERRED_CONTEXTS in docker_command_utils (#56525)
---
dev/breeze/src/airflow_breeze/utils/docker_command_utils.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dev/breeze/src/airflow_breeze/utils/docker_command_utils.py
b/dev/breeze/src/airflow_breeze/utils/docker_command_utils.py
index 4ea42e1adfb..0ec66aa9abf 100644
--- a/dev/breeze/src/airflow_breeze/utils/docker_command_utils.py
+++ b/dev/breeze/src/airflow_breeze/utils/docker_command_utils.py
@@ -642,9 +642,10 @@ def remove_docker_volumes(volumes: list[str] | None =
None) -> None:
# When you are using Docker Desktop (specifically on MacOS). the preferred
context is "desktop-linux"
# because the docker socket to use is created in the .docker/ directory in the
user's home directory
# and it does not require the user to belong to the "docker" group.
+# The "rancher-desktop" context is the preferred context for the Rancher
dockerd (moby) Container Engine.
# The "default" context is the traditional one that requires
"/var/run/docker.sock" to be writeable by the
# user running the docker command.
-PREFERRED_CONTEXTS = ["orbstack", "desktop-linux", "default"]
+PREFERRED_CONTEXTS = ["orbstack", "desktop-linux", "rancher-desktop",
"default"]
def autodetect_docker_context():