docker run --network host myimage

Category: Docker

docker run --network host myimage

Use the host network stack directly (no network isolation)

Bypasses Docker's network namespace isolation — the container shares the host's network interfaces directly.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.