From d14595ae48d51a37b7adb1e520cc9950892c5d87 Mon Sep 17 00:00:00 2001 From: Matheus Nogueira Date: Thu, 23 Nov 2023 12:22:08 -0300 Subject: [PATCH] fix: host network configuration on linux Docker on Linux doesn't understand `host.docker.internal` automatically. We need to add it as an extra host using `extra_hosts`. This was caught by @mrasu in his issue #3393. --- examples/tracetest-agent/pokeshop/docker-compose.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/tracetest-agent/pokeshop/docker-compose.yaml b/examples/tracetest-agent/pokeshop/docker-compose.yaml index 08d763c563..d896a73fe9 100644 --- a/examples/tracetest-agent/pokeshop/docker-compose.yaml +++ b/examples/tracetest-agent/pokeshop/docker-compose.yaml @@ -108,3 +108,5 @@ services: - "/otel-local-config.yaml" volumes: - ./collector.config.yaml:/otel-local-config.yaml + extra_hosts: + - "host.docker.internal:host-gateway"