Skip to content

[Feature]: Add start to DockerComposeEnvironment #10478

@electriquo

Description

@electriquo

Module

Core

Problem

I'm surprised to see thatDockerComposeEnvironment has commands like up(), destroy(), and stop(), but no start(). Making stop() relevant only for accessing the container (e.g. for debugging) but not for reusing the Compose environment.

Relates to #7442

Solution

Add start() to DockerComposeEnvironment.

Ref: https://docs.docker.com/reference/cli/docker/compose/start/

Benefit

Having the ability to stop and then start a Compose environment, without tearing it down completely, would be a significant performance improvement. It would help avoid the overhead of reinitializing the entire setup from scratch.

Alternatives

You tell me :)

Would you like to help contributing this feature?

No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions