Skip to content

Getting InputStream from a running container? #1

@getvictor

Description

@getvictor

Is it possible to get the InputStream for stdout and stderr from a running container using docker-java, like you can from java.lang.Process?

Currently I'm trying to run a docker container without using this API by using ProcessBuilder.start(). However, I see that Process.waitFor() gets stuck and never returns for simple commands like "docker run base echo hello"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions