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: 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 | Uses explicit placement GPU device IDs when set; otherwise requests all NVIDIA GPUs for GPU placement requests when daemon CDI support is detected. |
33
+
| CDI GPU request | Uses explicit placement GPU device IDs when set; otherwise requests all NVIDIA GPUs for GPU placement requests when daemon CDI support is detected. GPU count requests are rejected by this driver. |
34
34
35
35
The agent child process does not retain these supervisor privileges.
returnErr(Status::invalid_argument("gpu.count must be greater than 0"));
342
+
}
343
+
if gpu.count.is_some() && !gpu.device_ids.is_empty(){
344
+
returnErr(Status::invalid_argument(
345
+
"gpu.count is mutually exclusive with gpu.device_ids",
346
+
));
347
+
}
348
+
if gpu.count.is_some(){
349
+
returnErr(Status::invalid_argument(
350
+
"docker compute driver does not support GPU count requests",
351
+
));
352
+
}
353
+
}
339
354
if gpu.is_some() && !supports_gpu {
340
355
returnErr(Status::failed_precondition(
341
356
"docker GPU sandboxes require Docker CDI support. Enable CDI on the Docker daemon, then restart the OpenShell gateway/server so GPU capability is detected.",
0 commit comments