Skip to content

Introduce up --attach and/or --no-attach flags #8546

@ndeloof

Description

@ndeloof

Description

docker-compose uses the "logs" API and as such will drop output from services configured with log-driver:none
docker run attach to container, so doesn't rely on logs stored by engine.
docker compose up uses the same "attach" API for consistency with the CLI, bu doing so isn't strictly backward compatible with docker-compose, and doesn't offer any option to drop logs from a service.

We could introduce additional flags to offer this feature, aligned with then existing --attach-dependencies` flag.

Additional information you deem important (e.g. issue happens only occasionally):
see https://github.com/docker/compose-cli/issues/1613

Metadata

Metadata

Assignees

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