Skip to content
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

[Question] Is it possible to pipe data to a docker container without streams ? #408

Closed
omartrigui opened this issue Oct 6, 2017 · 1 comment

Comments

@omartrigui
Copy link

As the title says, is there any alternative to perform the following command with dockerode ?

echo 'some data here' | docker run -i --rm docker/image:tag

I have used examples/run_stdin.js, but this method doesn't support data more than 4KB. I have tried piping my data with the previous command, and it works fine.

I appreciate any help/hints.

@omartrigui omartrigui changed the title [Question] Is it possible to pipe data to a docker container ? [Question] Is it possible to pipe data to a docker container without streams ? Oct 6, 2017
@apocas
Copy link
Owner

apocas commented Apr 5, 2021

Better later than ever :) But it seems you wanted something like container.putArchive

@apocas apocas closed this as completed Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants