Skip to content

terminal: true with no stdin causes container startup failure #2485

@cyphar

Description

@cyphar

If you try to run a container that has "terminal": true configured in non-detached mode with a dummy stdin (like /dev/null), you get errors:

% sudo runc run -b bundle ctr </dev/null
WARN[0000] exit status 2                                
ERRO[0000] container_linux.go:367: starting container process caused: process_linux.go:459: container init caused: 

Found as part of opencontainers/umoci#296.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions