feat: backend service

This commit is contained in:
Ilia Denisov
2026-05-06 10:14:55 +03:00
committed by GitHub
parent 3e2622757e
commit f446c6a2ac
1486 changed files with 49720 additions and 266401 deletions
+16
View File
@@ -0,0 +1,16 @@
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"
}