From 76c5914ad5a580119fec142a91ee81c6381cd267 Mon Sep 17 00:00:00 2001 From: TheByronHimes Date: Tue, 27 Aug 2024 15:53:04 +0200 Subject: [PATCH] Enable testcontainers on linux hosts --- .devcontainer/docker-compose.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index 713e30d..7ee15eb 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -13,7 +13,10 @@ services: USER_GID: 1000 init: true - privileged: true + + # Makes testcontainers work on linux based hosts + extra_hosts: + - host.docker.internal:host-gateway volumes: - ..:/workspace:cached