Skip to content

Docker logs immediately after docker run -d does not work as expected #1695

@armon

Description

@armon

Here is a minimal test case to demonstrate the problem:
https://gist.github.com/armon/6357180

Basically, if you start a container in a detached mode and then immediately try to tail it, it will not work as expected. However, inserting a sleep causes logs to work as expected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions