跳到正文
OpenAI Developers· @OpenAIDevs · X·· 3 天前AI 评分42
AI 导读

OpenAI Codex 使用 OS 级沙箱而非独立容器来约束用户环境中的命令。这种机制允许直接运行如 iOS 原生构建工具链和模拟器等本地可执行文件,避免了 Docker 隔离导致的兼容性问题。

正文 · 原文

Instead of moving computation to a separate container to provide isolation, Codex uses OS-level sandboxing to constrain commands running in the user’s existing environment.

For example, consider using Codex to develop an iOS app on a Mac. If you decided to sandbox Codex by running it inside Docker, Codex would not be able to run the iOS build toolchain composed of native Mac executables, nor could it launch the iPhone simulator to run the code.

A Docker-based workflow could delegate builds and simulator operations to the Mac host, but those operations would execute outside the container’s sandbox and would need their own restrictions.

来源:OpenAI Developers · x.com