testcontainers-python icon indicating copy to clipboard operation
testcontainers-python copied to clipboard

Feature: ryuk should be able to use TCP socket to connect to Docker engine API

Open snowflyak opened this issue 6 months ago • 0 comments

What are you trying to do?

I'm trying to run testcontainers on a host with Docker Engine API exposed via TCP socket instead of a Unix socket. Testcontainers run fine but ryuk fails to start because it wants to bind mount /var/run/docker.sock into container.

Using unix socket and bind mounts is hardcoded here:

https://github.com/testcontainers/testcontainers-python/blob/e7feb53fe532b6d32d5d0c5a5d517249f8e7de50/core/testcontainers/core/container.py#L285-L293

Supporting mTLS TCP sockets would also be cool. mTLS support may be split off into another issue though.

Other references:

  • Similar issue in testcontainers-java: https://github.com/testcontainers/testcontainers-java/issues/9137

snowflyak avatar Jun 03 '25 13:06 snowflyak