We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 399dba5 + 7a4e080 commit a09bad5Copy full SHA for a09bad5
1 file changed
runtime/v1/linux/proc/init.go
@@ -228,7 +228,7 @@ func (p *Init) Status(ctx context.Context) (string, error) {
228
defer p.mu.Unlock()
229
c, err := p.runtime.State(ctx, p.id)
230
if err != nil {
231
- if os.IsNotExist(err) {
+ if strings.Contains(err.Error(), "does not exist") {
232
return "stopped", nil
233
}
234
return "", p.runtimeError(err, "OCI runtime state failed")
0 commit comments