Docker-client: How to attach user input to attachStdin at runtime

I am executing a java program which requires user input during the execution. Below are the methods of docker-client that I am using to execute my command.

final String execCreation = docker.execCreate(
    id,
    command,
    DockerClient.ExecCreateParam.attachStdin(), 
    DockerClient.ExecCreateParam.attachStdout(), 
    DockerClient.ExecCreateParam.attachStderr()
);
final LogStream output = docker.execStart(execCreation);

Whereas command =

  • GitlabCI free shared runners to provision Ubuntu instead of CoreOS?
  • Docker - How to update images
  • Elastic Beanstalk Django Deployment With Preconfigured Docker Container
  • How i eexec gobblin with Docker
  • Docker port binding not working as expected
  • docker-machine stop command kills all my containers
  • ["bash", "-c", "cd mydockerbuild/ && javac Program.java  && java -cp . Program exit"]
    

    I am not getting error as but the code exit with exitcode == null.

    Please advise!

  • How to edit files in stopped/not starting docker container
  • ecs-cli up command - attaching own instance profile
  • How can I save my RSA KEY in my Docker Machine?
  • How to publish Docker on AWS from sbt-native-packager?
  • Eliminating the impact of UnionFS on results when benchmarking inside Docker
  • Passing a docker container's generated name to another container in docker-compose
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.