containerd / containerd/nerdctl

`nerdctl attach` freezes the terminal sessions randomly.

Open
#4,374 4 comments 0 reactions 1 assignee Claimed by @ChengyuZhu6 View on GitHub
bug
Dominant language
Go
Stars
10.4k
Forks
826
Avg merge
1d 23h
Merged PRs (30d)
44

Description

### Description

When attaching two terminal sessions using `nerdctl attach` and executing commands, the terminal randomly freezes and doesn't display the commands being entered.

https://github.com/user-attachments/assets/3e2a11ff-a710-4972-a88b-388b6c8e3d03

### Steps to reproduce the issue

1. sudo nerdctl run -it --rm --name enipla alpine
2. sudo nerdctl attach enipla

### Describe the results you received and expected

This is the result when running with docker.

https://github.com/user-attachments/assets/7c5a6138-bdca-43e7-a09c-ae7f86e1a9b9

### What version of nerdctl are you using?

```
Client:
Version: v2.1.2
OS/Arch: linux/amd64
Git commit: 2a2834dd1c926528aa141726a9a9132eb1665568
buildctl:
Version: v0.23.0-rc1-24-g91ff73e1c
GitCommit: 91ff73e1c26e761a64de9a05bc1e67387a7ef8d0

Server:
containerd:
Version: 1.7.27
GitCommit: 05044ec0a9a75232cad458027ca83437aae3f4da
runc:
Version: 1.3.0
GitCommit: v1.3.0-0-g4ca628d1

```

### Are you using a variant of nerdctl? (e.g., Rancher Desktop)

Others

### Host information

```
Client:
Namespace: default
Debug Mode: false

Server:
Server Version: 1.7.27
Storage Driver: overlayfs
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Log: fluentd journald json-file none syslog
Storage: native overlayfs
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.8.0-62-generic
Operating System: Linux Mint 22.1
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 13.57GiB
Name: anton
ID: 5616474f-8d43-470c-890a-3a1c59b1e89c
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.