From 79342848d93ef4a91c15d8ef1a6c42a712f5363e Mon Sep 17 00:00:00 2001 From: Kevin Wittek Date: Tue, 3 Jan 2023 15:19:58 +0100 Subject: [PATCH 1/2] docs: clarify usage of `TESTCONTAINERS_HOST_OVERRIDE` for DinD on Docker Desktop --- .../continuous_integration/dind_patterns.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/supported_docker_environment/continuous_integration/dind_patterns.md b/docs/supported_docker_environment/continuous_integration/dind_patterns.md index fd31cb75068..eb7f2da6d32 100644 --- a/docs/supported_docker_environment/continuous_integration/dind_patterns.md +++ b/docs/supported_docker_environment/continuous_integration/dind_patterns.md @@ -34,8 +34,9 @@ Where: !!! note - If you are using Docker Desktop, you need to mount the Docker socket that bypasses the API proxy (see [this comment](https://github.com/docker/for-mac/issues/5588#issuecomment-934600089) for more details): - `-v /var/run/docker.sock.raw:/var/run/docker.sock` + If you are using Docker Desktop, you need to configure `TESTCONTAINERS_HOST_OVERRIDE` to use the special DNS name + `host.docker.internal` for accessing the host from within a container, which is provided by Docker Desktop: + `-e TESTCONTAINERS_HOST_OVERRIDE=host.docker.internal` ### Docker Compose example The same can be achieved with Docker Compose: From 40c732fbeebb95121847dfb4316b97c492821acc Mon Sep 17 00:00:00 2001 From: Kevin Wittek Date: Wed, 4 Jan 2023 09:38:42 +0100 Subject: [PATCH 2/2] Update docs/supported_docker_environment/continuous_integration/dind_patterns.md Co-authored-by: Andre Hofmeister <9199345+HofmeisterAn@users.noreply.github.com> --- .../continuous_integration/dind_patterns.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/supported_docker_environment/continuous_integration/dind_patterns.md b/docs/supported_docker_environment/continuous_integration/dind_patterns.md index eb7f2da6d32..2ea0627216e 100644 --- a/docs/supported_docker_environment/continuous_integration/dind_patterns.md +++ b/docs/supported_docker_environment/continuous_integration/dind_patterns.md @@ -34,7 +34,7 @@ Where: !!! note - If you are using Docker Desktop, you need to configure `TESTCONTAINERS_HOST_OVERRIDE` to use the special DNS name + If you are using Docker Desktop, you need to configure the `TESTCONTAINERS_HOST_OVERRIDE` environment variable to use the special DNS name `host.docker.internal` for accessing the host from within a container, which is provided by Docker Desktop: `-e TESTCONTAINERS_HOST_OVERRIDE=host.docker.internal`