-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add support for --preserve-fds to podman run #6458
Comments
Shouldn't be that difficult (the reason |
@eriksjolund Feel like opening a PR? |
@rhatdan Up till now I've only been a Golang code reader and not a Golang code writer, so it would take a bit of an effort to do an PR. Unfortunately I have too little time right now. |
No problem @eriksjolund, thanks for the issue. I am always trying to encourage contributions. Anyone helping in OpenSource projects are appreciated. |
Just trying out an approach. This is not so important. When libpod Github issue [Add support for --preserve-fds to podman run](containers/podman#6458) has been implemented, maybe it makes some sense to let the command `demo` read the options-input on file decriptor 3 instead of from a specified file path. Signed-off-by: Erik Sjölund <[email protected]>
@eriksjolund can you provide more details? what the uses case |
Add --preservefds to podman run. close containers#6458 Signed-off-by: Qi Wang <[email protected]>
I wanted to create a command-line tool to demonstrate a C++ library. The command-line tool needs two input files.
I see that the PR #6625 has been merged: Is the feature available in any release? Fedora 32
Centos 8
|
|
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
Summary: Add support for
--preserve-fds=N
topodman run
, in the same way that the command-line option is supported inpodman exec
.Example:
The command foobar (in the container localhost/example) reads input from the file descriptor 0 and the file descriptor 3.
My goal is is to run foobar and pass the file file1.txt as file descriptor 0 and the file file2.txt as file descriptor 3. (Both file1.txt and file2.txt are located on the host system)
It would be nice to be able to run
but that is currently not possible. Instead I need to use
podman exec
, something like this:More info:
The text was updated successfully, but these errors were encountered: