Create a testcontainer on a remote daemon using SSH, is this supported? #857
-
*I'm on a mac m1, but this is more of a general question. I use colima to run containers on arm and x86 platforms, I also connect to other docker daemons * I can run testcontainers with the Colima docker.sock using the symlinks from
When using the docker cli, I can connect to docker daemon running on another (virtual) machine by setting up an appropriate ❯ docker context ls --format table
NAME DESCRIPTION DOCKER ENDPOINT ERROR
colima-edit * colima [profile=edit] unix:///Users/<user_id>/.colima/edit/docker.sock
default Current DOCKER_HOST based configuration unix:///var/run/docker.sock
parallels-debian parllels-debian ssh://[email protected] I've not found a way to connect testcontainers to the remote daemon. Is there a defined way I should set it up, please? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
To use Colima usually you need to set the Regarding SSH. Docker.DotNet does not support SSH endpoints (dotnet/Docker.DotNet#575). Therefore Testcontainers cannot support it. |
Beta Was this translation helpful? Give feedback.
-
Thank you this works great |
Beta Was this translation helpful? Give feedback.
You can connect to a TCP endpoint, simply set the
DOCKER_HOST
environment variable: