Skip to content

docker compose V2 stops all containers related to project #9554

Description

@Couga54

Docker Compose version v2.6.0

I have project with a few file, like:

01_db.yml
02_web.yml

I run them with separate commands:

docker compose -f 01_db.yml -p test up -d
docker compose -f 02_web.yml -p test up -d

When executing command
docker compose -f 01_db.yml -p test stop
It stops all services that are related to "-p test" (all services in 01_db.yml and 02_web.yml), meanwhile docker-compose (V1) stop only services related to file and project

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions