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've been troubleshooting issues my team has been having with TC and I found a curious behavior of ryuk I can't explain and was wondering if you wouldn't mind. I know you keep these separate (I read through #161) but this behavior is ryuk specific.
When I run as specified it works:
± docker run -v /var/run/docker.sock:/var/run/docker.sock -e RYUK_PORT=8080 -p 8080:8080 docker.io/testcontainers/ryuk:0.8.1
2024/10/11 14:13:49 Pinging Docker...
2024/10/11 14:13:49 Docker daemon is available!
2024/10/11 14:13:49 Starting on port 8080...
2024/10/11 14:13:49 Started!
2024/10/11 14:14:49 Timeout waiting for connection
2024/10/11 14:14:49 Removed 0 container(s), 0 network(s), 0 volume(s) 0 image(s)
But I don't have anything at /var/run/docker.sock on my system:
± ls -lah /var/run/docker.sock
ls: /var/run/docker.sock: No such file or directory
I'm running rancher desktop so my docker.sock is elsewhere and I point things at it via DOCKER_HOST env var. If I point ryuk at my actual socket it doesn't work as you talked about in the issue I posted above.
So, If ryuk isn't running privileged, and I'm NOT mounting my docker.sock (I'm mounting the non-existent /var/run/docker.sock) how does ryuk connect to the docker daemon in that first, successful example?
The text was updated successfully, but these errors were encountered:
Even on Rancher Desktop, mounting /var/run/docker.sock should happen within the Linux VM, not on the Mac, so doing -v /var/run/docker.sock:/var/run/docker.sockshould work (else it is an issue with Rancher Desktop not handling this special case correctly).
If you continue having issues, consider opening them in the specific Testcontainers project, since they are likely known and require Testcontainers specific config changes and are unrelated to Ryuk itself.
I've been troubleshooting issues my team has been having with TC and I found a curious behavior of ryuk I can't explain and was wondering if you wouldn't mind. I know you keep these separate (I read through #161) but this behavior is ryuk specific.
When I run as specified it works:
But I don't have anything at /var/run/docker.sock on my system:
I'm running rancher desktop so my docker.sock is elsewhere and I point things at it via
DOCKER_HOST
env var. If I point ryuk at my actual socket it doesn't work as you talked about in the issue I posted above.So, If ryuk isn't running privileged, and I'm NOT mounting my docker.sock (I'm mounting the non-existent /var/run/docker.sock) how does ryuk connect to the docker daemon in that first, successful example?
The text was updated successfully, but these errors were encountered: