Skip to content

Commit 8d3a770

Browse files
docs: clarify service container accessibility from agent sandbox (#23776)
1 parent 8d635a7 commit 8d3a770

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/src/content/docs/reference/frontmatter.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,9 @@ services:
575575
- 5432:5432
576576
```
577577

578+
> [!NOTE]
579+
> The AWF agent runs inside an isolated Docker container. Service containers expose ports on the runner host, not within the agent's network namespace. To connect to a service from the agent, use `host.docker.internal` as the hostname instead of `localhost`. For example, a Postgres service configured with port `5432:5432` is accessible at `host.docker.internal:5432`.
580+
578581
See [GitHub Actions service docs](https://docs.github.com/en/actions/using-containerized-services).
579582

580583
## Conditional Execution (`if:`)

0 commit comments

Comments
 (0)