-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for attaching Stdin when execStart #253
Comments
looks like spotify/docker-client has the similar issue: spotify/docker-client#156 |
for docker execStart API call, i just created a quick and dirty http hijacking with java.net.Socket: here is a simple usage:
i will refactor the code to be more production ready later |
Thanks for investigating! I'm curious if and how this will integrate with current codebase. |
@marcuslinke |
FYI: Meanwhile I experiment with netty as foundation framework (https://github.com/docker-java/docker-java/tree/netty). Currently most features are implemented now like UNIX sockets, SSL/https and of course http hijacking that is needed for passing STDIN to the container. All existing tests passed successfully but still some needed features are missing namely http(s) proxy support and automatic redirection (and maybe some more). @KostyaSha After this is done I plan to merge into master as alternative |
@marcuslinke @bsideup has some view point about rx/reactive java. Let's wait for his comments for netty branch. |
Closing this as of merging #397 |
Hi folks
in my case, i'd like to execture a block of bash scripts when 'docker exec', the way to approach that, i think, is to attach stdin, and send the block of bash scripts through the output stream.
but i find execStart only return an inputStream, there is noway to send data when execStart.
so could you implement this, or is there any other way to workaround this?
thanks
The text was updated successfully, but these errors were encountered: