run_in_container can only run one container at a time

Resolved 💬 0 comments Opened Apr 18, 2025 by BadPirate Closed Apr 18, 2025

What version of Codex is running?

0.1.2504172351

What platform is your computer?

Macos

What steps can reproduce the bug?

  • Launch a workspace using run_in_container
  • In another terminal launch a different workspace using run_in_container

Issue

run_in_container should handle parallelism better, I've already made a fix, but wanted to create an issue to reference.

Repro

What is the expected behavior?

2 containers, two terminals

What do you see instead?

Launching of second container kills the first (they use the same docker name)

Additional information

Have a fix incoming for this, wanted a related issue to cite.

View original on GitHub ↗