Documentation
¶
Overview ¶
Package dockerhost resolves which container engine kubesoloctl talks to, the way the docker CLI does: DOCKER_HOST, otherwise the active Docker context.
Colima, Rancher Desktop, Podman and Docker Desktop each register a context pointing at their own socket, and often do not provide /var/run/docker.sock at all; kind follows the context through the docker CLI, and kubesoloctl, which talks to the engine directly, has to read it itself.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Host ¶
Host returns the engine endpoint to use: DOCKER_HOST when it is set, else the endpoint of the context named by DOCKER_CONTEXT or by currentContext in the docker CLI's config.json. It returns "" when neither names one other than "default", which means the client's own default, /var/run/docker.sock.
Types ¶
This section is empty.