containers / containers/toolbox

Failure to attach to container when run under sudo

Open
#1,681 2 comments 0 reactions 0 assignees View on GitHub
1. Bug
Dominant language
Go
Stars
3.5k
Forks
262
Avg merge
3d 1h
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.