Skip to content

nerdctl compose exec -it blocked when starting second tty #4371

Closed

Description

@chawson

Description

After successfully executing the first nerdctl compose exec -it valkey-1, entering any other directory in another terminal (even if the directory does not contain compose.yaml) and executing nerdctl compose exec -it xxx will be blocked.
Image

Steps to reproduce the issue

  1. Create the compose.yaml file

compose.yaml

name: web

services:
    valkey-0:
        image: docker.io/valkey/valkey:8.1.2
        restart: always
  1. Start compose: nerdctl compose up -d
  2. Open two terminal command lines and execute nerdctl compose exec -it valkey-1 -- valkey-cli in both.
  3. It can be observed that the first terminal enters the valkey connection normally, and the second terminal is blocked
  4. Press ctrl+c on the first terminal to exit the valkey connection, and you can observe that the second terminal enters the valkey connection from the blocking state.

Describe the results you received and expected

Like nerdctl exec -it web-valkey-0-1 -- valkey-cli, it can be executed on multiple ttys without being blocked

Image

What version of nerdctl are you using?

Client:
Version: v2.1.2
OS/Arch: linux/amd64
Git commit: 2a2834d
buildctl:
Version: v0.21.1
GitCommit: 66735c67040bc80e6ed104f451683e094030a4e1

Server:
containerd:
Version: v2.1.2
GitCommit: 64ed272067a24c2d917064eea25a78e1479d632f
runc:
Version: 1.3.0
GitCommit: v1.3.0-0-g4ca628d

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

None

Host information

Client:
Namespace: default
Debug Mode: false

Server:
Server Version: v2.1.2
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.16.0-061600rc2-generic
Operating System: Linux Mint 22
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 31.06GiB
Name: lunar
ID: d05346dc-0c62-4852-8d51-8e9b57cca664

Activity

  1. added
    bug
    and removed
    kind/unconfirmed-bug-claim
    on Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/composebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions