cli
cli copied to clipboard
docs: clarify --add-host example uses two terminals
Fixes #5558.
Summary
- clarify that the example requires two terminals
- keep the existing example intact, but split the steps so the HTTP server can keep running while the container connects to it
- avoid introducing a more complex or platform-specific replacement command
Validation
git diff --check
Thanks! I took this PR in the direction of the earlier two-shell suggestion from #5558 to keep the example simple and make it explicit that the HTTP server needs to keep running while the container connects to it.
I did not switch it to an nc-based variant because the later discussion in #5558 seemed to surface some cross-platform differences there, for example -q 0 vs -N depending on the netcat variant.
If you would prefer the docs to use the nc approach instead, I am happy to update the PR in that direction.