Skip to content

Instantly share code, notes, and snippets.

View WhereJuly's full-sized avatar

WhereJuly WhereJuly

View GitHub Profile
@WhereJuly
WhereJuly / docker_wsl2.md
Created October 2, 2025 05:07 — forked from sz763/docker_wsl2.md
How to run tests with TestContainers in WSL2 without Docker Desktop

Install docker

in case you haven't docker installed, please follow this instruction https://docs.docker.com/engine/install/ubuntu/

Expose docker port

First way

Create daemon.json file in /etc/docker, with content:

{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}

Second way suggested by @maireadmccabe-fire