nerdctl icon indicating copy to clipboard operation
nerdctl copied to clipboard

Does `nerdctl restart` have unstable issues

Open shilaidun opened this issue 1 year ago • 1 comments

Description

After my machine unexpectedly restarted, the containers were all in a Created status, and containerd reported an error log: "no running task found: task 6ad08d6d5f8907df1fd555cc", after that nerdctl restart 6ad08d6d5f89 it shows FATA[0000] 1 errors: no running task found: task 6ad08d6d5f8907df1fd555cc7ebd015291f1964e4c8b493fecd0fab9aa3d9541 not found: not found, but when I continue to nerdctl start 6ad08d6d5f89, it works, and then the container becomes in an Up status

Steps to reproduce the issue

Describe the results you received and expected

nerdctl restart can work

What version of nerdctl are you using?

1.7.2

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

None

Host information

No response

shilaidun avatar Feb 05 '24 09:02 shilaidun

It is not possible to restart stopped container. You just need to make start hete

fahedouch avatar Feb 07 '24 12:02 fahedouch

@fahedouch @shilaidun shall we close this?

apostasie avatar Aug 12 '24 16:08 apostasie

@AkihiroSuda should this be closed?

apostasie avatar Aug 25 '24 00:08 apostasie