Skip to content
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

Duplicate Logs After Docker Image Restart #234

Closed
mbrooks opened this issue Sep 19, 2016 · 5 comments
Closed

Duplicate Logs After Docker Image Restart #234

mbrooks opened this issue Sep 19, 2016 · 5 comments

Comments

@mbrooks
Copy link

mbrooks commented Sep 19, 2016

When a container is running and is restarted, all of the stdout for the docker container that is being restarted is sent back through logspout and logged again.

Has anyone else seen this behavior? Let me know if I need to collect any debugging, or give any detail towards the issue. I could possibly also create a patch if pointed in the right direction.

@mbrooks mbrooks changed the title Duplicate Logs After Restart Duplicate Logs After Docker Image Restart Sep 19, 2016
@kamrar
Copy link

kamrar commented Sep 29, 2016

Same problem here with logspout v3.2-dev.

@iravench
Copy link

iravench commented Nov 2, 2016

Observed the same behaviour here

@ebr
Copy link
Contributor

ebr commented Jan 9, 2017

@mbrooks, see #187 as well as a connected PR #201, which provides a fix. unfortunately, i do not know if it will ever be merged.

@erikverheij
Copy link

Same problem here. As a workaround we use the --force-recreate option with docker-compose. On container recreation the logs are cleared. Unfortunately this will not work on automatic restarts.

There is also a feature request in docker-compose to clear container logs.

@michaelshobbs
Copy link
Member

Closing as this is covered in a couple PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants