Force composer to run commands in a specific shell/Docker container?

Hi,

I need to run commands in specific Docker containers for my project. I can’t use dev containers since I have multiple containers per project and it would be a pain to

What I’ve tried:

  1. Specifying the shell using “@Containers: …”
  2. Providing the Docker container ID directly
  3. Requesting commands to always use “docker exec”

Current Behavior:

  • Commands appear to run but without visible output
  • Commands always hang and require manual cancellation
  • Even when it works once, subsequent commands revert to using the workspace shell
  • This creates a frustrating cycle of running → hanging → canceling → repeat

Has anyone found a reliable way to make Cursor/Composer consistently use a specific pre-opened shell or at least a specific Docker container?