Skip to content

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

@miki725

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

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