mirror of
https://github.com/katanemo/plano.git
synced 2026-06-11 15:05:14 +02:00
`--add-host host.docker.internal:host-gateway` works on Docker Desktop and standard Docker Engine but not on Rancher Desktop, where the `host-gateway` keyword is not recognised. Introduce `_get_host_ip()` which reads the gateway of the Docker bridge network (e.g. 172.17.0.1) — a portable, concrete IP that works across Docker Desktop, Docker Engine, and Rancher Desktop. If the network inspect fails for any reason the function falls back to `host-gateway`, preserving the existing behaviour for standard installations. Also add unit tests covering the success path, subprocess failure, and empty-output fallback. |
||
|---|---|---|
| .. | ||
| templates | ||
| __init__.py | ||
| config_generator.py | ||
| consts.py | ||
| core.py | ||
| docker_cli.py | ||
| init_cmd.py | ||
| main.py | ||
| native_binaries.py | ||
| native_runner.py | ||
| rich_click_config.py | ||
| targets.py | ||
| template_sync.py | ||
| trace_cmd.py | ||
| trace_listener_runtime.py | ||
| utils.py | ||
| versioning.py | ||