Skip to content

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

@groovyfeng

Description

@groovyfeng

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions