Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Using pipe on rootless container output hangs with use_pty enabled #403

Open
groovyfeng opened this issue Aug 30, 2024 · 0 comments
Open

Comments

@groovyfeng
Copy link

With Podman, sudo can be used to run a container in the context of a non-root user (rootless). e.g.
sudo -iu testuser podman run -it busybox echo test
With use_pty enabled, ff the output is piped to another command then it hangs, irresponsive to ctrl+c.
sudo -iu testuser podman run -it busybox echo test | cat
The hanging won't happen if use_pty is disabled or sudo is not used. The deadlock seems to happen with the combination of rootless container and piping. It can be repro'd on Red Hat 8 & 9, the sudo version is 1.9.5p2.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant