We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 256737f commit bc7a83aCopy full SHA for bc7a83a
1 file changed
container/podman/factory.go
@@ -94,7 +94,7 @@ func (f *podmanFactory) CanHandleAndAccept(name string) (handle bool, accept boo
94
if err != nil {
95
return false, true, fmt.Errorf("error inspecting container: %v", err)
96
}
97
- if ctnr.State == nil || !ctnr.State.Running {
+ if ctnr.ContainerJSONBase == nil || ctnr.State == nil || !ctnr.State.Running {
98
return false, true, fmt.Errorf("container not running")
99
100
return true, true, nil
0 commit comments