Wrong dev containers command for devcontainer.secure.json
Open 💬 2 comments Opened May 17, 2026 by pipoe2h
These steps in the documentation don't work:
- Dev Containers only accepts a config file named
devcontainer.jsonor.devcontainer.json - Open Folder in Container as the name indicates, lets you choose a folder, not a file.
I'm not sure if these are the instructions pushed to https://developers.openai.com/codex/agent-approvals-security#run-codex-in-dev-containers, since I couldn't find the repo for that site.
2 Comments
Taking a look — will open a small docs PR shortly clarifying that the VS Code Dev Containers UI only auto-discovers configs named devcontainer.json (so devcontainer.secure.json must be launched via the CLI, or copied/symlinked into a subfolder named devcontainer.json).
Heads up — I prepared a one-line docs PR for this on a fork (kiwigitops/codex@docs/devcontainer-vscode-instructions) but it looks like this repo doesn't accept external PRs (createPullRequest returns 404 from forks, and all recent merges are from openai-internal branches). Posting the proposed diff here in case a maintainer wants to land it directly: