Skip to content

Improper parsing or tokenization of command string with krun handler #1836

@jonner

Description

@jonner

When using the krun runtime handler with podman, commands with special characters often fail due to an apparent bug in parsing. For example, the following command works fine:

$ podman run --rm alpine /bin/sh -c 'ls && sleep 30'
bin
dev
...

But the following command fails:

$ podman run --rm --annotation run.oci.handler=krun alpine /bin/sh -c 'ls && sleep 30'
[2025-07-24T20:13:40Z ERROR devices::virtio::console::device] Couldn't get terminal dimensions: ENOTTY: Not a typewriter
[2025-07-24T20:13:40Z ERROR devices::virtio::console::device] Couldn't get terminal dimensions: ENOTTY: Not a typewriter
ls: 66: No such file or directory
ls: sleep: No such file or directory
ls: 30: No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions