Documentation
¶
Overview ¶
Package sdk provides a factory method for creating a Docker client.
Index ¶
Constants ¶
View Source
const ( // DockerSocketEnv is the environment variable for custom Docker socket path DockerSocketEnv = "TOOLHIVE_DOCKER_SOCKET" // PodmanSocketEnv is the environment variable for custom Podman socket path PodmanSocketEnv = "TOOLHIVE_PODMAN_SOCKET" )
Environment variable names
View Source
const ( // PodmanSocketPath is the default Podman socket path PodmanSocketPath = "/var/run/podman/podman.sock" // PodmanXDGRuntimeSocketPath is the XDG runtime Podman socket path PodmanXDGRuntimeSocketPath = "podman/podman.sock" // DockerSocketPath is the default Docker socket path DockerSocketPath = "/var/run/docker.sock" // DockerDesktopMacSocketPath is the Docker Desktop socket path on macOS DockerDesktopMacSocketPath = ".docker/run/docker.sock" // RancherDesktopMacSocketPath is the Docker socket path for Rancher Desktop on macOS RancherDesktopMacSocketPath = ".rd/docker.sock" )
Common socket paths
Variables ¶
View Source
var ErrRuntimeNotFound = fmt.Errorf("container runtime not found")
ErrRuntimeNotFound is returned when a container runtime is not found
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.