Skip to content

[Bug]: --interactive and --tty doesnt pipe stdout #949

Closed

Description

@miki725

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

Using the flags together doesnt seem to pipe stdout from within the container. As such cannot redirect for example stdout to /dev/null:

➜ container run -it --rm alpine echo hello > /dev/null
hello

whereas using them separately works as expected:

➜ container run -t --rm alpine echo hello > /dev/null

➜ container run -i --rm alpine echo hello > /dev/null

Current behavior

stdout cannot be redirected/piped:

➜ container run -it --rm alpine echo hello > /dev/null 2> /dev/null
hello

Expected behavior

stdout/err should be piped as normal commands. for example in docker this works as expected:

➜ docker run -it --rm alpine echo hello > /dev/null

Environment

- OS: 26.1 (25B78)
- Xcode: 
- Container: 0.7.1

Relevant log output

N/A

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Dec 10, 2025
  2. dcantah commented on Dec 11, 2025

    @dcantah
    Contributor

    Takin a look, thanks for the report!

  3. dcantah commented on Dec 11, 2025

    @dcantah
    Contributor

    #951 should fix this

  4. added a commit that references this issue on Dec 11, 2025
    7d30720
  5. added 3 commits that reference this issue on Jan 20, 2026
    1559e6d
    0099292
    94ba456
  6. added a commit that references this issue on Jan 27, 2026
    474a32e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions