Description
nerdctl start fails after restarting the host
Steps to reproduce the issue
sudo nerdctl run -d --name foo busybox sleep infinity
- Reboot the host
$ sudo nerdctl start foo
FATA[0000] 1 errors:
failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running createRuntime hook #0: exit status 1, stdout: , stderr: time="2024-08-23T14:07:24+09:00" level=fatal msg="failed to lock state dir: unable to unmarshall lifecycle data: unexpected end of JSON input": unknown
Describe the results you received and expected
Received: error
Expected: starts
What version of nerdctl are you using?
$ sudo nerdctl version
Client:
Version: v2.0.0-rc.1
OS/Arch: linux/amd64
Git commit: 778975fcaa57e365ee44dbad4a9d8d63180ae320
buildctl:
Version: v0.0.0+unknown
Server:
containerd:
Version: v2.0.0-rc.3
GitCommit: 27de5fea738a38345aa1ac7569032261a6b1e562
runc:
Version: 1.2.0-rc.2
GitCommit: v1.2.0-rc.2-0-gf2d2ee5e
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
$ sudo nerdctl info
Client:
Namespace: default
Debug Mode: false
Server:
Server Version: v2.0.0-rc.3
Storage Driver: overlayfs
Logging Driver: json-file
Cgroup Driver: : systemd
Cgroup Version: : 2
Plugins:
Log: fluentd journald json-file syslog
Storage: native overlayfs
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.8.0-40-generic
Operating System: Ubuntu 24.04 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.57GiB
Name: suda-ws01
ID: 5097992c-2934-44bd-a1cb-5ac20cf2013f