-
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 stdin-once #20267
Comments
Interested in opening a PR? |
A friendly reminder that this issue had no activity for 30 days. |
@Luap99 PTAL |
Sorry for the late reply. I tried to look into it but I am having a hard time understanding the codebase. From what I got, it seems like conmon does not have support for this. I already opened a discussion at containers/conmon#459 but got no response, yet. |
A command like |
This was the fix for it it: fbce758 That of course does not need to mean that we shouldn't support this API parameter. |
A friendly reminder that this issue had no activity for 30 days. |
Feature request description
This feature request comes from working with the Docker Go SDK that allows setting
StdinOnce
when creating a container. This closes stdin for the container after the first attached client (to stdin) disconnects.Podman currently does not support this, so applications that read from an input stream (in this case stdin) will hang until stopped manually.
Suggest potential solution
Add an stdin-once flag for container creation. If set, stdin to the container is closed after the first attached client (to stdin) disconnects.
Have you considered any alternatives?
No response
Additional context
The struct in Docker Go SDK:
https://pkg.go.dev/github.com/docker/[email protected]+incompatible/api/types/container#Config
Already existing annotation for container inspect details in Podman Go bindings:
podman/libpod/define/container_inspect.go
Line 35 in 46ca057
The text was updated successfully, but these errors were encountered: