Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Containers started by a Docker Compose–based dev container keep running after Cursor is fully quit. The same happens when switching between dev containers. A manual docker compose down is required every time.
This has been reported twice before and is still open:
- DevContainer still not shuting down containers on exit (Aug 2025, Cursor 1.4.2, Linux)
- Dev containers - Exiting cursor or switching dev container doesn't stop the running container (Nov 2025, Cursor 2.1.39, Windows + WSL2)
Filing fresh rather than reviving those because it still reproduces on 3.12.17 — the behaviour has now survived two major versions and shows up on a third OS.
A staff reply on the November thread asked that reporter three questions. Answering all three up front:
- Config type: Docker Compose based.
"shutdownAction": "stopContainer"in devcontainer.json: no effect — containers are still running after quitting. Same result the earlier reporter got.- Anysphere Remote Containers extension version: [FILL IN — Extensions panel, search “Remote - Containers”]
Steps to Reproduce
- Open a project with a Docker Compose–based
.devcontainerconfiguration. - Run “Dev Containers: Reopen in Container” and let it build and attach.
- Quit Cursor entirely — Cmd+Q on macOS, not just closing the window.
- Run
docker ps. The container(s) from step 2 are still running. - Add
"shutdownAction": "stopContainer"to devcontainer.json, rebuild, and repeat steps 2–4. The containers are still running — the setting makes no difference.
Switching directly from one dev container to another (without quitting) leaves the first one running too.
Expected Behavior
Quitting Cursor should stop the containers it started for the dev container, and switching to a different dev container should stop the one being left. Setting "shutdownAction": "stopContainer" should at minimum force that behaviour.
Operating System
MacOS
Version Information
Version: 3.12.17
VS Code Extension API: 1.128.0
Commit: 0fb762053c34788bb7760d5673f8a6d4c8589d50
Date: 2026-07-17T02:53:53.006Z
Layout: Agent Window
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.6.0
Additional Information
Reproduces on two separate machines — macOS (arm64) and Linux — so this does not look OS-specific. Combined with the earlier Linux and Windows/WSL2 reports, the behaviour now has reports on all three platforms.
Container runtime on macOS: Colima
Impact: not blocking. Cursor is fully usable, but across a day of switching between projects it leaves orphaned containers holding memory, and each one has to be cleaned up by hand.
Does this stop you from using Cursor
No - Cursor works, but with this issue