Skip to content
This repository was archived by the owner on Jul 20, 2026. It is now read-only.
This repository was archived by the owner on Jul 20, 2026. It is now read-only.

[Feature Request] Auto start/stop containers when opening/closing vscode #3005

Description

@lonix1

My workspace defines various docker-compose.yml files - e.g. to start a database, or some other service which I need while coding. So when I open the workspace, I first have to start those containers.

Please consider a feature which auto-starts specific containers when the workspace is opened, and auto-stops/removes them when the workspace is closed.

That would greatly simplify development.


The compose files could be specified in a project/.vscode/.docker config file, e.g.:

{
  "autoUp": [
    "src/foo/docker-compose.yml"
    "src/bar/docker-compose.yml"
  ],
  "autoDown": [
    "src/foo/docker-compose.yml"
  ],
  "autoRemove": [
    "src/bar/docker-compose.yml"
  ]
}

(That would be better than specifying it in the project/.vscode/settings.json as that would be checked into source control, whereas the project/.vscode/.docker config file is a per-developer preference - e.g. some devs must start the database, whereas others may start redis or whatever.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions