You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
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).
Reacted by Raktim Biswas, Drew and Anthony Lapenna
Activity
ghost changed the title [-]`nerdctl start` cannot start containers in **Created** or **Exited** status [/-][+]`nerdctl start` cannot start containers in `Created` or `Exited` status [/+]on Nov 2, 2021
changed the title [-]`nerdctl start` cannot start containers in `Created` or `Exited` status [/-][+]`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`)[/+]on Nov 3, 2021
nerdctl run -d overlayfs@sha256:564f654982832faaeb09ab49b4b543b83a79f478b5d73bc2785fe0aa07648597
i don't know why it immediately stop the container if you run nerdctl ps -a it will have status Exited (0) even after add --restart flag it will restarting in loop, btw you can start container with command :
nerdctl start -a overlayfs@sha256:564f654982832faaeb09ab49b4b543b83a79f478b5d73bc2785fe0aa07648597
but it will give you blank shell, if you type ls it will response :
ls
bin
boot
dev
etc
home
lib
lib64
media
mnt
opt
proc
root
run
sbin
srv
sys
tmp
usr
var
Activity
[-]`nerdctl start` cannot start containers in **Created** or **Exited** status [/-][+]`nerdctl start` cannot start containers in `Created` or `Exited` status [/+][-]`nerdctl start` cannot start containers in `Created` or `Exited` status [/-][+]`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`)[/+]AkihiroSuda commentedon Nov 3, 2021
-it is currently incomparable with stop/start, please use -d
pvbiesen commentedon Jan 28, 2022
+1 migrating from docker, very annoying
nerdctl start -i <container>doesn't work afternerctl run -ti <image> /bin/bash.animatedcreativity commentedon Feb 4, 2022
Yes, cannot start stopped containers.
raktim-sixt commentedon Aug 22, 2022
yes, same here...cannot start the container which is in the
CREATEDstatefailed to create shim task: OCI runtime create failed: runc create failed: cannot allocate tty if runc will detach without setting console socket: unknownhas anyone found any workaround/solution to this?
aerphanas commentedon Nov 12, 2022
is anyone know how to run image properly ?
i run image with :
after i stop container and i want to run it again with :
it say
FATA[0000] failed to create shim task: OCI runtime create failed: runc create failed: cannot allocate tty if runc will detach without setting console socket: unknowni have version
current solution :
run container with -d flag
i don't know why it immediately stop the container if you run
nerdctl ps -ait will have status Exited (0) even after add --restart flag it will restarting in loop, btw you can start container with command :but it will give you blank shell, if you type ls it will response :