Skip to content

nerdctl start cannot start containers in Created or Exited status (OCI runtime create failed: cannot allocate tty if runc will detach without setting console socket) #492

@ghost

Description

Required behavior: Allow start Created or Exited containers, either with nerdctl start or nerdctl exec -it.
Actual behavior:
you can run a container, for example: nerdctl run -it nginx:latest --name nginx-container.
You can stop it: nerdctl stop nginx-container.
Issue:
You cannot start again the container neither nerdctl start nginx-container nor nerdctl exec -it nginx-container /bin/sh.
Error messages:
nerdctl start nginx-container:
FATA[0000] OCI runtime create failed: cannot allocate tty if runc will detach without setting console socket: unknown
nerdctl exec -it nginx-container /bin/sh:
FATA[0000] no running task found: task 0a88555b90488894c72918665b9b14bd6ae96e89676d65ca772b9abf34727884 not found: not found
Environment:

  • OS: MacOs Big Sur 11.0.1.
  • Backend: Rancher Desktop 0.6.0 (nerdctl 0.12.1).

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