containerd / containerd/nerdctl
nerdctl oci hook can not find contaienrd.sock when node restarts
- Dominant language
- Go
- Stars
- 10.4k
- Forks
- 826
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 44
Description
### Description
When a node restarts, the containerd service will restart and the container instance will be started. If the containerd socket is not created, the nerdctl oci hook will fail and the container instance will remain in an unknown state indefinitely.
### Steps to reproduce the issue
1. Start a container instance using nerdctl compose.
2.Restart this node.
### Describe the results you received and expected
I want the code that retrieves the actual file path of the containerd socket to be removed, just like on Windows.
https://github.com/containerd/nerdctl/blob/main/pkg/clientutil/client.go#L92
Another approach is to add retries to fix this issue.
### What version of nerdctl are you using?
nertdcl: 2.1.2
containerd: 1.6.20
### Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
### Host information
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.