-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attaching to a new container, docker compose up misses the initial logs #8884
Comments
It seems I've mis-characterised this issue. It can be reproduced more simply, and in v2.1.0:
This gives the same missing logs |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it had not recent activity during the stale period. |
1 similar comment
This issue has been automatically closed because it had not recent activity during the stale period. |
Description
With docker-compose up, attaching to a new container misses the initial log lines for that container.
While testing #8859, I noticed that when a container was stopped, removed, then recreated, the first few log lines were missing.
Steps to reproduce the issue:
docker-compose up
docker-compose rm -fs bbb
docker-compose up -d bbb
- the first few lines of the logs will not be shownSteps 2 and 3 can be also replaced by
docker-compose up -d --scale bbb=1
Describe the results you received:
The logs from
docker-compose up
will look something like this:Describe the results you expected:
The logs should contain a second instance of "Start bbb" and "1 bbb".
Note that
docker-compose logs -f
shows the full logs with no missing lines.Additional information you deem important (e.g. issue happens only occasionally):
This is not yet reproducible in v2.1.0, because of #8747, but can be reproduced in the current v2 branch. Hence the non-release version number below.
Output of
docker compose version
:Output of
docker info
:Additional environment details:
The text was updated successfully, but these errors were encountered: