Skip to content

Failure to attach to container when run under sudo #1681

@mmcnutt

Description

@mmcnutt

Running a toolbox under sudo fails to give a bash prompt

Steps how to reproduce the behaviour

  1. create a toolbox with "sudo toolbox"
  2. enter toolbox with sudo toolbox enter -v
  3. Error: OCI runtime error: crun: read pipe failed

can attach to the container manually with podman exec bash

Expected behaviour
a prompt in the toolbox

Actual behaviour
returned to normal session

Output of toolbox --version (v0.0.90+)
toolbox version 0.1.2

Toolbx package info (rpm -q toolbox)
toolbox version 0.1.2

Output of podman version
Client: Podman Engine
Version: 5.5.2
API Version: 5.5.2
Go Version: go1.24.4
Git Commit: e7d8226745ba07a64b7176a7f128e4ef53225a0e
Built: Tue Jun 24 10:00:00 2025
Build Origin: Fedora Project
OS/Arch: linux/amd64

Info about your OS
Fedora Kinoite 42
Version: 42.20250711.0 (2025-07-11T01:13:49Z)
BaseCommit: 68d69807ffe91391c07966798a4fb50e928901ba5168f038224c7bec369964f

Additional context

reproducible across multiple machines and users
https://discussion.fedoraproject.org/t/sudo-toolbox-enter-fails-in-today-kinoite-42/156833/4

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions