Files
bun.sh/cmake
Claude Bot 8bfe2c8015 Implement container option for Bun.spawn with ephemeral cgroupv2 and rootless namespaces
This adds Linux-only container support to Bun.spawn allowing process isolation
through cgroupv2, user namespaces, PID namespaces, network namespaces, and
optional overlayfs.

Features:
- Ephemeral cgroupv2 creation with memory and CPU limits
- Rootless user namespace support with UID/GID mapping
- PID namespace isolation
- Network namespace isolation with loopback setup
- Optional overlayfs filesystem isolation
- Proper cleanup and resource management
- Comprehensive error handling
- Linux-only conditional compilation

JavaScript API:
```js
spawn({
  cmd: ["echo", "hello"],
  container: {
    cgroup: true,
    userNamespace: true,
    pidNamespace: true,
    networkNamespace: true,
    memoryLimit: 128 * 1024 * 1024,
    cpuLimit: 50,
    overlayfs: { ... }
  }
})
```

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-25 13:41:10 +00:00
..
2024-11-15 21:01:55 -08:00
2025-08-23 00:31:53 -07:00
2025-05-31 16:21:08 -07:00