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.
2 parents 256737f + bc7a83a commit c15f44eCopy full SHA for c15f44e
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