cli icon indicating copy to clipboard operation
cli copied to clipboard

docs: clarify --add-host example uses two terminals

Open WilliamK112 opened this issue 7 months ago • 1 comments

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

WilliamK112 avatar Apr 25 '26 07:04 WilliamK112

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.

WilliamK112 avatar Apr 27 '26 05:04 WilliamK112