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
Copy file name to clipboardExpand all lines: TESTING.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,14 @@ Suites:
151
151
- Docker suite (`--features e2e-docker`) - common suite plus Docker-only coverage such as Dockerfile image builds, Docker preflight checks, and managed Docker gateway resume.
152
152
- Docker GPU suite (`--features e2e-docker-gpu`) - Docker suite plus GPU sandbox smoke coverage.
153
153
154
+
GPU device-selection tests compare OpenShell sandboxes against a plain Docker or
155
+
Podman container that requests `--device nvidia.com/gpu=all`. The probe image
156
+
defaults to the image used by the `gateway` stage in
157
+
`deploy/docker/Dockerfile.images`; set `OPENSHELL_E2E_GPU_PROBE_IMAGE` to
158
+
override it. Per-device checks run only for NVIDIA CDI device IDs reported by
159
+
the runtime's discovered devices list, so WSL2 hosts that expose only
Copy file name to clipboardExpand all lines: crates/openshell-driver-docker/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ contract:
30
30
|`cap_add`| Grants supervisor-only capabilities required for namespace setup and process inspection. |
31
31
|`apparmor=unconfined`| Avoids Docker's default profile blocking required mount operations. |
32
32
|`restart_policy = unless-stopped`| Keeps managed sandboxes resumable across daemon or gateway restarts. |
33
-
| CDI GPU request |Requests all NVIDIA GPUs when the sandbox spec asks for GPU support and daemon CDI support is detected. |
33
+
| CDI GPU request |Uses the sandbox `gpu_device` value when set; otherwise requests all NVIDIA GPUs when the sandbox spec asks for GPU support and daemon CDI support is detected. |
34
34
35
35
The agent child process does not retain these supervisor privileges.
"docker GPU sandboxes require Docker CDI support. Enable CDI on the Docker daemon, then restart the OpenShell gateway/server so GPU capability is detected.",
"docker GPU sandboxes require Docker CDI support. Enable CDI on the Docker daemon, then restart the OpenShell gateway/server so GPU capability is detected.",
Copy file name to clipboardExpand all lines: crates/openshell-driver-podman/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,7 @@ The container spec in `container.rs` sets these security-critical fields:
46
46
|`no_new_privileges`|`true`| Prevents privilege escalation after exec. |
47
47
|`seccomp_profile_path`|`unconfined`| The supervisor installs its own policy-aware BPF filter. A container-level profile can block Landlock/seccomp syscalls during setup. |
48
48
|`mounts`| Private tmpfs at `/run/netns`| Lets the supervisor create named network namespaces in rootless Podman. |
49
+
| CDI GPU devices | Sandbox `gpu_device` value when set, otherwise all NVIDIA GPUs | Exposes requested GPUs to GPU-enabled sandbox containers. |
49
50
50
51
The restricted agent child does not retain these supervisor privileges.
0 commit comments