8000 stdout in stream mode doesn't buffer output before attachment · Issue #3587 · rkt/rkt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

stdout in stream mode doesn't buffer output before attachment #3587

Open
omribahumi opened this issue Feb 11, 2017 · 0 comments
Open

stdout in stream mode doesn't buffer output before attachment #3587

omribahumi opened this issue Feb 11, 2017 · 0 comments

Comments

@omribahumi
Copy link

This is referring the feature introduced in #3396 (rkt: add experimental support for attachable applications)

Environment

$ printf "$(rkt version)\n--\n$(uname -srm)\n--\n$(cat /etc/os-release)\n--\n$(systemctl --version)\n"
rkt Version: 1.24.0
appc Version: 0.8.10
Go Version: go1.7.3
Go OS/Arch: linux/amd64
Features: -TPM +SDJOURNAL
--
Linux 4.4.0-62-generic x86_64
--
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
--
systemd 229
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN

What did you do?

$ ID=$(sudo RKT_EXPERIMENT_ATTACH=1 rkt prepare quay.io/coreos/alpine-sh --stdin stream --stdout stream --stderr stream --exec=/bin/sh -- -c 'echo hello; sleep 100')
$ sudo rkt run-prepared $ID &
[2] 9333
$ sudo RKT_EXPERIMENT_ATTACH=1 rkt attach $ID

What did you expect to see?

I expected the hello to be buffered and flushed when attaching.
This works as expected when running with --stdin tty --stdout tty --stderr tty
I also expect this test to work without the sleep 100 appended.
Even if the container is dead, the output should be retrievable somehow (this also doesn't work when using tty mode).

What did you see instead?

Nothing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0