libkrun icon indicating copy to clipboard operation
libkrun copied to clipboard

Attach to interactive containers doesn't work without TTY

Open Agalin opened this issue 3 years ago • 1 comments

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.

Agalin avatar Nov 18 '22 11:11 Agalin

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

slp avatar Nov 18 '22 14:11 slp