Contradicting information about port mappings in service containers #34459
Labels
actions
This issue or pull request should be reviewed by the docs actions team
content
This issue or pull request belongs to the Docs Content team
help wanted
Anyone is welcome to open a pull request to fix this issue
SME reviewed
An SME has reviewed this issue/PR
Code of Conduct
What article on docs.github.com is affected?
What part(s) of the article would you like to see updated?
In both pages linked about, it says that if you don't specify the port, it maps the host port to a randomly chosen port on the container:
About service containers / Mapping Docker host and service container ports
I think, it's the other way around: "Map a randomly chosen port on the Docker host to UDP port 8080 in the container"
Workflow syntax for GitHub Actions /
jobs.<job_id>.services
/ Example: Using localhostI think, it should be: "When you specify the container port but not the Docker host port, the container port is randomly assigned to a free port."
Additional information
In the following page, I think the correct statement is used:
Accessing contextual information about workflow runs /
job
context / Example usage of the job contextThe text was updated successfully, but these errors were encountered: