Commit e345abf
fix: skip LD_PRELOAD on macOS for studio containers
On macOS, when creating studio containers, skip setting LD_PRELOAD
environment variable because:
1. macOS host doesn't have GPU libraries (GPU is remote)
2. Attempting to load non-existent libraries causes ld.so errors in the
Linux container:
"ERROR: ld.so: object '/opt/gpugo/libs/libcuda.so' from
/etc/ld.so.preload cannot be preloaded (cannot open shared object file)"
This fix checks the host platform using IsDarwin() and only sets
LD_PRELOAD when not on macOS.
Other platform-related fixes already present in codebase:
- Docker containers have default "sleep infinity" command (backend_docker.go:294)
- Default platform is "linux/amd64" for studio containers (studio.go:477)
- No container runtime error messages with helpful hints (manager.go:120-148)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 9d74890 commit e345abf
1 file changed
Lines changed: 13 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
321 | 327 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | 328 | | |
326 | 329 | | |
327 | 330 | | |
| |||
0 commit comments