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

Attach to interactive containers doesn't work without TTY #97

Open
Agalin opened this issue Nov 18, 2022 · 1 comment
Open

Attach to interactive containers doesn't work without TTY #97

Agalin opened this issue Nov 18, 2022 · 1 comment

Comments

@Agalin
Copy link

Agalin commented Nov 18, 2022

In short, this does work:

# podman run -d -i --runtime /usr/bin/crun alpine
63634bd214c84293bbd00b75d4d64da06bfe1f92fce1a777e2e4331da5611de9
# echo "echo 'test'" | podman attach 6 
test

while this does not:

# podman run -d -i --runtime /usr/bin/krun alpine
45b4014d2c6098c4a7295f23a14892668503fa3b6ebe5e569699e9c99aca5f1f
# echo "echo 'test'" | podman attach 45

For some reason trying to attach to a container without a TTY ends with a freeze (regardless of the --init being used or not).
This breaks usage of containers in scripts.

@slp
Copy link
Contributor

slp commented Nov 18, 2022

Thanks for the report! I've identified the problem. Will work a proper patch next Monday.

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