You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(podman): avoid host-gateway on macOS machines (#1637)
Closes#1307
Default the Podman host gateway alias override to gvproxy's host-loopback IP on macOS while preserving host-gateway resolution on Linux. Wire the setting through Podman config, gateway TOML inheritance, and the standalone driver, and document the platform behavior.
Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
|`OPENSHELL_PODMAN_HOST_GATEWAY_IP`|`--host-gateway-ip`| empty on Linux, `192.168.127.254` on macOS | Host gateway IP used for sandbox host aliases. Empty uses Podman's `host-gateway` resolver. |
294
297
|`OPENSHELL_SANDBOX_SSH_SOCKET_PATH`|`--sandbox-ssh-socket-path`|`/run/openshell/ssh.sock`| Supervisor Unix socket path in `PodmanComputeConfig`. |
295
298
|`OPENSHELL_STOP_TIMEOUT`|`--stop-timeout`|`10`| Container stop timeout in seconds. |
296
299
|`OPENSHELL_SANDBOX_PIDS_LIMIT`|`--sandbox-pids-limit`|`2048`| Podman cgroup PID limit for sandbox containers. Set `0` to inherit Podman's runtime/default PID limit. |
@@ -304,10 +307,11 @@ Podman resources after out-of-band container removal or label drift.
304
307
The Podman driver is designed for rootless operation. The following adaptations
305
308
matter compared to cluster or rootful runtimes:
306
309
307
-
1. subuid/subgid preflight check: `check_subuid_range()` in `driver.rs` warns
308
-
operators if `/etc/subuid` or `/etc/subgid` entries are missing for the
309
-
current user. This is not a hard error because some systems use LDAP or
310
-
other mechanisms.
310
+
1. subuid/subgid preflight check: on non-macOS hosts, `check_subuid_range()` in
311
+
`driver.rs` warns operators if `/etc/subuid` or `/etc/subgid` entries are
312
+
missing for the current user. This is not a hard error because some systems
313
+
use LDAP or other mechanisms. macOS skips the check because `podman machine`
314
+
runs the Podman service inside a Linux VM.
311
315
2. cgroups v2 requirement: the driver refuses to start if cgroups v1 is
312
316
detected. Rootless Podman requires the unified cgroup hierarchy.
313
317
3.`nsenter` for namespace operations: `openshell-sandbox` uses
0 commit comments