I would like to know how to findout the configured container-runtime of your docker-client. Preferably in a programmatic way with golang.
I know those to packages for golang handling containers with containerd and docker-engine: https://pkg.go.dev/github.com/containerd/containerd https://pkg.go.dev/github.com/docker/docker/client
And I know that Kubernetes offers interface to receive the runtime used on each client: https://kubernetes.io/docs/tasks/administer-cluster/migrating-from-dockershim/find-out-runtime-you-use
But as mentioned I would like to know a programmatic way, preferably with golang. Because not every docker-client is a kubernetes Pod ;)