You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have DOCKER_HOST=unix:///Users/mike/.rd/docker.sock to use Rancher Desktop that I have running. I also have Test Containers Desktop installed but it's not running. But there is a config file that it created:
When I run the test it runs for some time, does a few test containers things but then fails with an error
saving images saving images Cannot connect to the Docker daemon at tcp://127.0.0.1:61153. Is the docker daemon running?
It fails on k3s.LoadImages(). Looking at the log output, Resolved Docker Host is from Test Containers Desktop and Resolved Docker Socket Path is from the default Docker context. They don't match each other at all.
The right thing to do is probably to use the selected Docker context?
$ docker context list
NAME DESCRIPTION DOCKER ENDPOINT ERROR
default Current DOCKER_HOST based configuration unix:///var/run/docker.sock
rancher-desktop * Rancher Desktop moby context unix:///Users/mike/.rd/docker.sock
Relevant log output
2024/07/03 13:41:44 github.com/testcontainers/testcontainers-go - Connected to docker:
Server Version: 25.0.5
API Version: 1.44
Operating System: Alpine Linux v3.19
Total Memory: 15970 MB
Resolved Docker Host: tcp://127.0.0.1:61153
Resolved Docker Socket Path: /var/run/docker.sock
Test SessionID: 6e4dba3df3ad66d1e9850235cab48c0932ccf548532d0ca1aa0deafa462e7c1c
Test ProcessID: c4deea13-769c-4a5a-9827-d7c4cf5007ee
Additional information
No response
The text was updated successfully, but these errors were encountered:
@ash2k I see, I think the error comes from the socket path resolution strategy, that should verify if each location, when found, responds to a ping/info call.
I'll work on this for the upcoming release, thanks for pointing it out.
Testcontainers version
9cc2598
Using the latest Testcontainers version?
Yes
Host OS
macOS
Host arch
arm64
Go version
1.22.4
Docker version
Client: Docker Engine - Community Version: 27.0.2 API version: 1.44 (downgraded from 1.46) Go version: go1.22.4 Git commit: 912c1ddf8a Built: Wed Jun 26 18:39:48 2024 OS/Arch: darwin/arm64 Context: rancher-desktop Server: Engine: Version: 25.0.5 API version: 1.44 (minimum version 1.24) Go version: go1.21.10 Git commit: e63daec8672d77ac0b2b5c262ef525c7cf17fd20 Built: Sun May 12 07:25:43 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: v1.7.10 GitCommit: 4e1fe7492b9df85914c389d1f15a3ceedbb280ac runc: Version: 1.1.12 GitCommit: 51d5e94601ceffbbd85688df1c928ecccbfa4685 docker-init: Version: 0.19.0 GitCommit:
Docker info
What happened?
I have
DOCKER_HOST=unix:///Users/mike/.rd/docker.sock
to use Rancher Desktop that I have running. I also have Test Containers Desktop installed but it's not running. But there is a config file that it created:When I run the test it runs for some time, does a few test containers things but then fails with an error
It fails on
k3s.LoadImages()
. Looking at the log output,Resolved Docker Host
is from Test Containers Desktop andResolved Docker Socket Path
is from the default Docker context. They don't match each other at all.The right thing to do is probably to use the selected Docker context?
$ docker context list NAME DESCRIPTION DOCKER ENDPOINT ERROR default Current DOCKER_HOST based configuration unix:///var/run/docker.sock rancher-desktop * Rancher Desktop moby context unix:///Users/mike/.rd/docker.sock
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: