Skip to content

Using Testcontainers from Windows host with Docker daemon running inside WSL2 VM (without Docker Desktop) #5110

Answered by kiview
gavasv asked this question in Q&A
Discussion options

You must be logged in to vote

On Windows Testcontainers only supports Docker Desktop officially.

If you run your tests from within WSL with Docker running in WSL, Testcontainers should work OOTB.

For making Testcontainers work from the Windows host with a Docker daemon running inside WSL, make sure you configure the Docker daemon to be accessible by the Windows host and configure Testcontainers for a remote Docker daemon connection:
https://www.testcontainers.org/features/configuration/#customizing-docker-host-detection

I will convert this issue into a GH Discussion question.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kiview
Comment options

Answer selected by kiview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
os/windows resolution/waiting-for-info Waiting for more information of the issue author or another 3rd party.
2 participants
Converted from issue

This discussion was converted from issue #5054 on February 22, 2022 12:25.