KubeArmor Panic if uninitialised docker socket exists #1948
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Bug Report
KubeArmor Panic if uninitialised docker socket exists
General Information
KubeArmor/KubeArmor/core/dockerHandler.go
Lines 265 to 271 in 88f54a6
We don't do a return if there's an error while initialising. This creates a panic because we call the client function with a nil client. We should return early from the function.
To Reproduce
Have the docker socket file exist, but the docker daemon would be down
KubeArmor Panics on init
Expected behavior
No panic
Panic Trace
The text was updated successfully, but these errors were encountered: