OpenAI Developers 介绍 Codex 采用操作系统级沙箱约束用户现有环境中的命令,而非把计算搬到独立容器中隔离。以 Mac 上开发 iOS 应用为例,若用 Docker 沙箱运行 Codex,将无法调用由原生 Mac 可执行文件组成的 iOS 构建工具链,也无法启动 iPhone 模拟器运行代码。
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