Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Attached exec #432

Closed
sayarg opened this issue May 15, 2016 · 3 comments
Closed

Attached exec #432

sayarg opened this issue May 15, 2016 · 3 comments
Labels

Comments

@sayarg
Copy link
Contributor

sayarg commented May 15, 2016

Description

Is there a away to run exec with attached dedicated connection / thread? Specifically how can this be done with passing InputStream for interacting with the exec? I see the execCreate can take attachStdin as an ExecCreateParam, but couldn't find a way to actually provide an InputStream to write into the exec.

My use case is to exec /bin/bash into a running container and then send commands via the InputStream, receive feedback via the OutputStreams provided to the log attach function.

@sayarg
Copy link
Contributor Author

sayarg commented May 16, 2016

hey @mattnworb @davidxia any hints? is it possible with current support or otherwise happy to get it a go and submit a PR.

@rgrunber
Copy link
Contributor

This has been asked before in the past, and I've generally linked people to Issue #156, where I describe an approach taken to do just that.

The problem is that Apache HttpClient doesn't support this so you only get back an Inputstream despite the fact that the underlying representation supports writing as well.

@stale
Copy link

stale bot commented Sep 24, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 24, 2018
@stale stale bot closed this as completed Oct 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants