hostPath type check failed: /var/run/docker.sock is not a directory

hi,

I am following the docs https://docs.drone.io/pipeline/kubernetes/examples/service/docker/
and getting error from Pod creation:
Type Reason Age From Message


Normal Scheduled 79s default-scheduler Successfully assigned default/drone-uvvd9ep6ey9v6a555f1v to ip-10-207-4-234.ec2.internal
Warning FailedMount 15s (x8 over 79s) kubelet, ip-10-207-4-234.ec2.internal MountVolume.SetUp failed for volume “drone-yji02qm8els02yerasf8” : hostPath type check failed: /var/run/docker.sock is not a directory

solved by changing to directory