Skip to content

Docker appears to explode on infinite output #3040

@vincentwoo

Description

@vincentwoo

Doing a docker create and start via remote API of a simple ruby script:

while true
  print 'hello' * 100
end

appears to overload the docker daemon. I see 100% cpu usage and memory load until the daemon restarts. The docker daemon logs show stuff like:

[error] container.go:490 attach: job 1 returned error write unix @: no buffer space available, aborting all jobs
[error] container.go:421 attach: stdout: write unix @: no buffer space available

or sometimes just the cryptic Killed.

This happens whether or not I do a docker attach to the container, as well. Is there an advised way to mitigate this on my end?

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