Skip to content

Commit

Permalink
fix: host network configuration on linux (#3394)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mathnogueira authored Nov 23, 2023
1 parent 9db3410 commit 25ad0bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/tracetest-agent/pokeshop/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,5 @@ services:
- "/otel-local-config.yaml"
volumes:
- ./collector.config.yaml:/otel-local-config.yaml
extra_hosts:
- "host.docker.internal:host-gateway"

0 comments on commit 25ad0bd

Please sign in to comment.