docker / docker/compose

Stream logs during `--wait`

Open
#9,122 18 comments 22 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature
Dominant language
Go
Stars
38.2k
Forks
5.8k
Avg merge
2d 14h
Merged PRs (30d)
55

Description

The addition of --wait (#8777) was nice. But it would be especially helpful in CI/CD environments if the logs were streamed during the "wait".

For example, I'm trying to start an Oracle DB with --wait and it's not working. On CI/CD it's almost impossible to capture the logs for it unless I do some very weird trickery of running docker compose logs -f in parallel.

I understand that --wait implies --detach, but I guess it does not need to be the case until the --wait condition is met.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Compose --wait entry point introduced by #8777 and trace how it handles detached services while waiting for the condition. Check how this interacts with docker compose logs -f and the Oracle DB example. Done means logs stream during the wait, including in CI/CD, without requiring a parallel logs command.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, go
Domain
cli, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.