package testenv

// DockerSocketPath returns the bind-mountable filesystem path of the
// Docker daemon socket reachable from a container running on the
// same daemon.
//
// testcontainers's `ExtractDockerSocket` returns the path on the
// machine that is *running tests* — on macOS+Colima that is the
// Colima-managed path under `~/.colima/...`, which does not resolve
// inside the Linux VM. For bind mounts into other containers we need
// the path the daemon itself sees, which on every supported daemon
// (native Linux, Docker Desktop, Colima, Rancher) is the canonical
// `/var/run/docker.sock`.
func DockerSocketPath() string {
	return "/var/run/docker.sock"
}
