X Tutup
Skip to content

Exec start command: end of STDIN stream not detected #471

@rtimush

Description

@rtimush

When docker exec is invoked from command line like this the end of input stream is properly detected and cat process finishes:

$ echo OK | docker exec -i some_busybox_container cat
OK
$

When I try to do the same with docker-java, the end of stream is not detected and cat process waits forever. This problem is not caught by com.github.dockerjava.netty.exec.ExecStartCmdExecTest#execStartAttachStdin test because .awaitCompletion(5, TimeUnit.SECONDS) doesn't fail if the process is not completed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup