Docker and CI/CD · Middle · Question 21 of 75
What does --network host do?
- ✓Correct answer: The container uses the host's network stack directly
- 2The container can reach only the host, nothing else
- 3The container gets its own public IP address
Explanation
No port mapping is needed and there's no NAT overhead, but there's also no network isolation and ports can clash. On Docker Desktop it behaves differently.